<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: lboxctl2.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00182.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">lboxctl2.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03620_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00182_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a9aa45f03a653bac93ca3b416263a2368"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a9aa45f03a653bac93ca3b416263a2368">LB_KEYDOWN</a>&#160;&#160;&#160;WM_USER+1</td></tr>
<tr class="separator:a9aa45f03a653bac93ca3b416263a2368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66d3baabfc411b47ccd09300f47793f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ae66d3baabfc411b47ccd09300f47793f">NOMODIFIER</a>&#160;&#160;&#160;0  /* No modifier is down */</td></tr>
<tr class="separator:ae66d3baabfc411b47ccd09300f47793f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa770501c874de9bae50247cb650a6950"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>&#160;&#160;&#160;1  /* Shift alone */</td></tr>
<tr class="separator:aa770501c874de9bae50247cb650a6950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58029b2cd62b3d58b35d444b91ae94c6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>&#160;&#160;&#160;2  /* Ctl alone */</td></tr>
<tr class="separator:a58029b2cd62b3d58b35d444b91ae94c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a725a791cd9142f6dfb63f0bd4ed97d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a6a725a791cd9142f6dfb63f0bd4ed97d">SHCTLDOWN</a>&#160;&#160;&#160;(<a class="el" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a> + <a class="el" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>)  /* Ctrl + Shift */</td></tr>
<tr class="separator:a6a725a791cd9142f6dfb63f0bd4ed97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f572dfb2a8ee4f0b9632342e190071"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a61f572dfb2a8ee4f0b9632342e190071">MAX_TYPESEARCH</a>&#160;&#160;&#160;256</td></tr>
<tr class="separator:a61f572dfb2a8ee4f0b9632342e190071"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a718e81e0f22adc2db136a403777a398c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a718e81e0f22adc2db136a403777a398c">pODRg</a>&#160;&#160;&#160;((<a class="el" href="a00257.html#a763f0a69a1a392a3db04ce31f8fbcbac">lpLBODItem</a>)pRg)</td></tr>
<tr class="separator:a718e81e0f22adc2db136a403777a398c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a4138a4b8a43e2394b7d1ad5008ef7b01"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a4138a4b8a43e2394b7d1ad5008ef7b01">LBGetDC</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:a4138a4b8a43e2394b7d1ad5008ef7b01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec8a47dce8f07292ff58031ce8d1c6e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aec8a47dce8f07292ff58031ce8d1c6e6">LBReleaseDC</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:aec8a47dce8f07292ff58031ce8d1c6e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad333a7027751ae3d3eb3b4e5ba986b80"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, LPRECT lprc, BOOL fErase)</td></tr>
<tr class="separator:ad333a7027751ae3d3eb3b4e5ba986b80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa2bbef4dbb327ad82e5b1a6acbb713a"><td class="memItemLeft" align="right" valign="top">HBRUSH&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aaa2bbef4dbb327ad82e5b1a6acbb713a">xxxLBGetBrush</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, HBRUSH *phbrOld)</td></tr>
<tr class="separator:aaa2bbef4dbb327ad82e5b1a6acbb713a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbe4f724310a04746730870a9690aa0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#abbe4f724310a04746730870a9690aa0f">LBInitDC</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:abbe4f724310a04746730870a9690aa0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2965fa15cdad40e8176dfb625200256"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#af2965fa15cdad40e8176dfb625200256">LBTermDC</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:af2965fa15cdad40e8176dfb625200256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad61fcc3b7a00278894d43eb819ed5b3d"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem, LPRECT lprc)</td></tr>
<tr class="separator:ad61fcc3b7a00278894d43eb819ed5b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0558a2e34e28a7db61cf8fd4c394f172"><td class="memItemLeft" align="right" valign="top">BOOL CALLBACK&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a0558a2e34e28a7db61cf8fd4c394f172">LBPrintCallback</a> (HDC hdc, LPWSTR lpstr, <a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, int cx, int <a class="el" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>)</td></tr>
<tr class="separator:a0558a2e34e28a7db61cf8fd4c394f172"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3adc13bc6ed492221a4f1350363fb42"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#af3adc13bc6ed492221a4f1350363fb42">xxxLBDrawLBItem</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem, LPRECT lprect, BOOL fHilite, HBRUSH hbr)</td></tr>
<tr class="separator:af3adc13bc6ed492221a4f1350363fb42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a739b28ba311ee4abe56b082e80cb63e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fSetCaret)</td></tr>
<tr class="separator:a739b28ba311ee4abe56b082e80cb63e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f5d974473ed2d1730f3bab33096aa8"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wOpFlags)</td></tr>
<tr class="separator:ab0f5d974473ed2d1730f3bab33096aa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10491ea26ff51be57c5b81c1d9d0e8c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fPartial)</td></tr>
<tr class="separator:a10491ea26ff51be57c5b81c1d9d0e8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0aa852734cc1ffed376aab726138cbc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#af0aa852734cc1ffed376aab726138cbc">xxxLBoxCtlScroll</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> cmd, int yAmt)</td></tr>
<tr class="separator:af0aa852734cc1ffed376aab726138cbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4fb2819fdd86c30f99e14e003eff202"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ab4fb2819fdd86c30f99e14e003eff202">xxxLBoxCtlHScroll</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> cmd, int xAmt)</td></tr>
<tr class="separator:ab4fb2819fdd86c30f99e14e003eff202"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf1c435b1497423ea849ad2c89955beb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aaf1c435b1497423ea849ad2c89955beb">xxxLBPaint</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, HDC hdc, LPRECT lprcBounds)</td></tr>
<tr class="separator:aaf1c435b1497423ea849ad2c89955beb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3be527c73d19ec7f5239d37f678d1f20"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a3be527c73d19ec7f5239d37f678d1f20">ISelFromPt</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, POINT pt, LPDWORD piItem)</td></tr>
<tr class="separator:a3be527c73d19ec7f5239d37f678d1f20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5fe418a1364a3934d63936c502eee4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSel, BOOL fSelected, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wOpFlags)</td></tr>
<tr class="separator:aa5fe418a1364a3934d63936c502eee4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32fb898518333f6e10ba7459f4b05c8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a32fb898518333f6e10ba7459f4b05c8b">LastFullVisible</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:a32fb898518333f6e10ba7459f4b05c8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc6f46978c05a8a183896c3e9c15caf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i, BOOL fHilite)</td></tr>
<tr class="separator:a4dc6f46978c05a8a183896c3e9c15caf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba92583929559a636e7578de8af1e6e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iStart, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iEnd, BOOL fSelect)</td></tr>
<tr class="separator:aeba92583929559a636e7578de8af1e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e0630367eb018bf40e9bbc5924249ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sEvt)</td></tr>
<tr class="separator:a3e0630367eb018bf40e9bbc5924249ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eaf22c9a54b66cc76c7288ee61929b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a5eaf22c9a54b66cc76c7288ee61929b2">xxxSetISelBase</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem)</td></tr>
<tr class="separator:a5eaf22c9a54b66cc76c7288ee61929b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb113b5e175bc8c811ec12bcc816f3bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#acb113b5e175bc8c811ec12bcc816f3bb">xxxTrackMouse</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wMsg, POINT pt)</td></tr>
<tr class="separator:acb113b5e175bc8c811ec12bcc816f3bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb5cc8fc5e692299c9c84fdea3a7a072"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#acb5cc8fc5e692299c9c84fdea3a7a072">xxxLBButtonUp</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> uFlags)</td></tr>
<tr class="separator:acb5cc8fc5e692299c9c84fdea3a7a072"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a295ba52c0b994a2c9af393b67f6f840b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a295ba52c0b994a2c9af393b67f6f840b">IncrementISel</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSel, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sInc)</td></tr>
<tr class="separator:a295ba52c0b994a2c9af393b67f6f840b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae865bdbf8fc8b8c3982b92b6ecec38bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iTopNew)</td></tr>
<tr class="separator:ae865bdbf8fc8b8c3982b92b6ecec38bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac49ebe397493c9908b4f22eadd65d5f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSel, BOOL fPartial)</td></tr>
<tr class="separator:ac49ebe397493c9908b4f22eadd65d5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac810d042302264353670e5c8e682f729"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ac810d042302264353670e5c8e682f729">xxxLBoxCaretBlinker</a> (HWND hwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wMsg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> nIDEvent, LONG dwTime)</td></tr>
<tr class="separator:ac810d042302264353670e5c8e682f729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7a1705d26761d569c585ce4dea28f90"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#af7a1705d26761d569c585ce4dea28f90">xxxLBoxCtlKeyInput</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> msg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> vKey)</td></tr>
<tr class="separator:af7a1705d26761d569c585ce4dea28f90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83260e4fa4bbfc927ee1db63eb8cd2a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a83260e4fa4bbfc927ee1db63eb8cd2a1">Compare</a> (LPCWSTR pwsz1, LPCWSTR pwsz2, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwLocaleId)</td></tr>
<tr class="separator:a83260e4fa4bbfc927ee1db63eb8cd2a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ba8a913f6bc9410a77d03fddce6dff5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a0ba8a913f6bc9410a77d03fddce6dff5">xxxFindString</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, LPWSTR lpstr, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sStart, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> code, BOOL fWrap)</td></tr>
<tr class="separator:a0ba8a913f6bc9410a77d03fddce6dff5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab89241010aba4811e9296e83ddfaa82f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ab89241010aba4811e9296e83ddfaa82f">xxxLBoxCtlCharInput</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> inputChar, BOOL fAnsi)</td></tr>
<tr class="separator:ab89241010aba4811e9296e83ddfaa82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78da32aeb3e97b3aa097bc32d5d59e89"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a78da32aeb3e97b3aa097bc32d5d59e89">LBoxGetSelItems</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fCountOnly, int wParam, LPINT lParam)</td></tr>
<tr class="separator:a78da32aeb3e97b3aa097bc32d5d59e89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c35b7b60a115cd322fc1fb90a09b964"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a3c35b7b60a115cd322fc1fb90a09b964">xxxLBSetRedraw</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fRedraw)</td></tr>
<tr class="separator:a3c35b7b60a115cd322fc1fb90a09b964"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5024241be6ee5f985c8cafa65d584e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ad5024241be6ee5f985c8cafa65d584e8">xxxLBSelRange</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, int iStart, int iEnd, BOOL fnewstate)</td></tr>
<tr class="separator:ad5024241be6ee5f985c8cafa65d584e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d6ca7e87b67870f724eaede20fcb9ef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a9d6ca7e87b67870f724eaede20fcb9ef">xxxLBSetCurSel</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, int iSel)</td></tr>
<tr class="separator:a9d6ca7e87b67870f724eaede20fcb9ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7251bc5c3e763886e91af0025313ccac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a7251bc5c3e763886e91af0025313ccac">LBSetItemData</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, int index, LONG data)</td></tr>
<tr class="separator:a7251bc5c3e763886e91af0025313ccac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a048126fb97fc310aa085c2ba6d6f745d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a048126fb97fc310aa085c2ba6d6f745d">xxxCheckRedraw</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fConditional, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem)</td></tr>
<tr class="separator:a048126fb97fc310aa085c2ba6d6f745d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4226072b101c6f3697b05c241a44d848"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a4226072b101c6f3697b05c241a44d848">xxxCaretDestroy</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb)</td></tr>
<tr class="separator:a4226072b101c6f3697b05c241a44d848"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f12775a07555c86d74ca182ac573f20"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a7f12775a07555c86d74ca182ac573f20">xxxLBSetSel</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, BOOL fSelect, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSel)</td></tr>
<tr class="separator:a7f12775a07555c86d74ca182ac573f20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ef3568d65f91ee105e66263b0863a16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#a3ef3568d65f91ee105e66263b0863a16">xxxLBoxDrawItem</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> item, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> itemAction, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> itemState, LPRECT lprect)</td></tr>
<tr class="separator:a3ef3568d65f91ee105e66263b0863a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace547b9010d40429d3d1da2d6f03ffdf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ace547b9010d40429d3d1da2d6f03ffdf">xxxLBBlockHilite</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSelFromPt, BOOL fKeyBoard)</td></tr>
<tr class="separator:ace547b9010d40429d3d1da2d6f03ffdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab75df6ab4e167809be4adcff1c4ca42e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a> (<a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a> plb, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> j, BOOL fHilite, <a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> OpFlags, BOOL fSelStatus)</td></tr>
<tr class="separator:ab75df6ab4e167809be4adcff1c4ca42e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a58029b2cd62b3d58b35d444b91ae94c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58029b2cd62b3d58b35d444b91ae94c6">&#9670;&nbsp;</a></span>CTLDOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CTLDOWN&#160;&#160;&#160;2  /* Ctl alone */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<a id="a9aa45f03a653bac93ca3b416263a2368"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9aa45f03a653bac93ca3b416263a2368">&#9670;&nbsp;</a></span>LB_KEYDOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LB_KEYDOWN&#160;&#160;&#160;WM_USER+1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<a id="a61f572dfb2a8ee4f0b9632342e190071"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61f572dfb2a8ee4f0b9632342e190071">&#9670;&nbsp;</a></span>MAX_TYPESEARCH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_TYPESEARCH&#160;&#160;&#160;256</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<a id="ae66d3baabfc411b47ccd09300f47793f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66d3baabfc411b47ccd09300f47793f">&#9670;&nbsp;</a></span>NOMODIFIER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NOMODIFIER&#160;&#160;&#160;0  /* No modifier is down */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00015">15</a> 行定义.</p>

</div>
</div>
<a id="a718e81e0f22adc2db136a403777a398c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a718e81e0f22adc2db136a403777a398c">&#9670;&nbsp;</a></span>pODRg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define pODRg&#160;&#160;&#160;((<a class="el" href="a00257.html#a763f0a69a1a392a3db04ce31f8fbcbac">lpLBODItem</a>)pRg)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6a725a791cd9142f6dfb63f0bd4ed97d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a725a791cd9142f6dfb63f0bd4ed97d">&#9670;&nbsp;</a></span>SHCTLDOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SHCTLDOWN&#160;&#160;&#160;(<a class="el" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a> + <a class="el" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>)  /* Ctrl + Shift */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a id="aa770501c874de9bae50247cb650a6950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa770501c874de9bae50247cb650a6950">&#9670;&nbsp;</a></span>SHIFTDOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SHIFTDOWN&#160;&#160;&#160;1  /* Shift alone */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a10491ea26ff51be57c5b81c1d9d0e8c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10491ea26ff51be57c5b81c1d9d0e8c1">&#9670;&nbsp;</a></span>CItemInWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> CItemInWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fPartial</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00474">474</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;{</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    RECT rect;</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160; </div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="a00194.html#a6e0ff86ca4bc63529b37c307ef9697ef">CItemInWindowVarOwnerDraw</a>(plb, fPartial);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    }</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160; </div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        <span class="keywordflow">return</span> plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a> * (plb-&gt;<a class="code" href="a01921.html#a8abffa689a2601dffeb2ec73f0d35c8b">numberOfColumns</a> + (fPartial ? 1 : 0));</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    }</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160; </div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rect);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160; </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;<span class="comment">     * fPartial must be considered only if the listbox height is not an</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;<span class="comment">     * integral multiple of character height.</span></div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;<span class="comment">     * A part of the fix for Bug #3727 -- 01/14/91 -- SANKAR --</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>);</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    <span class="keywordflow">return</span> (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)((rect.bottom / plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>) +</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;            ((rect.bottom % plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>)? (fPartial ? 1 : 0) : 0));</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00194_source.html#l00101">CItemInWindowVarOwnerDraw()</a>, <a class="el" href="a00257_source.html#l00885">tagLBIV::cyChar</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00257_source.html#l00888">tagLBIV::numberOfColumns</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l00986">LastFullVisible()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00191_source.html#l00025">LBSetCItemFullMax()</a>, <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l03127">xxxCheckRedraw()</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a> , 以及 <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a>.</p>

</div>
</div>
<a id="a83260e4fa4bbfc927ee1db63eb8cd2a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83260e4fa4bbfc927ee1db63eb8cd2a1">&#9670;&nbsp;</a></span>Compare()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> Compare </td>
          <td>(</td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>pwsz1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>pwsz2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwLocaleId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02538">2538</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>&#160;{</div>
<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> len1 = wcslen(pwsz1);</div>
<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> len2 = wcslen(pwsz2);</div>
<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> result;</div>
<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>&#160; </div>
<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>&#160;<span class="comment">     * CompareStringW returns:</span></div>
<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>&#160;<span class="comment">     *    1 = pwsz1  &lt;  pwsz2</span></div>
<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>&#160;<span class="comment">     *    2 = pwsz1  == pwsz2</span></div>
<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>&#160;<span class="comment">     *    3 = pwsz1  &gt;  pwsz2</span></div>
<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>&#160;    result = CompareStringW((LCID)dwLocaleId, NORM_IGNORECASE,</div>
<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>&#160;            pwsz1, min(len1,len2), pwsz2, min(len1, len2));</div>
<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>&#160; </div>
<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>&#160;    <span class="keywordflow">if</span> (result == 1) {</div>
<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>&#160;       <span class="keywordflow">return</span> LT;</div>
<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (result == 2) {</div>
<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>&#160;        <span class="keywordflow">if</span> (len1 == len2) {</div>
<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>&#160;            <span class="keywordflow">return</span> EQ;</div>
<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (len1 &lt; len2) {</div>
<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>&#160;<span class="comment">             * LATER IanJa: should not assume shorter string is a prefix</span></div>
<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>&#160;<span class="comment">             * Spanish &quot;c&quot; and &quot;ch&quot;, ligatures, German sharp-s/SS etc.</span></div>
<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>&#160;            <span class="keywordflow">return</span> PREFIX;</div>
<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>&#160;        }</div>
<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span>&#160;    }</div>
<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>&#160;    <span class="keywordflow">return</span> GT;</div>
<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02583">xxxFindString()</a>.</p>

</div>
</div>
<a id="a295ba52c0b994a2c9af393b67f6f840b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a295ba52c0b994a2c9af393b67f6f840b">&#9670;&nbsp;</a></span>IncrementISel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> IncrementISel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iSel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sInc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01816">1816</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;{</div>
<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160; </div>
<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;<span class="comment">     * Assumes cMac &gt; 0, return iSel+sInc in range [0..cmac).</span></div>
<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>&#160;    iSel += sInc;</div>
<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>&#160;    <span class="keywordflow">if</span> (iSel &lt; 0) {</div>
<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (iSel &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) {</div>
<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;        <span class="keywordflow">return</span> plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1;</div>
<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160;    }</div>
<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160;    <span class="keywordflow">return</span> iSel;</div>
<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>.</p>

</div>
</div>
<a id="a3be527c73d19ec7f5239d37f678d1f20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3be527c73d19ec7f5239d37f678d1f20">&#9670;&nbsp;</a></span>ISelFromPt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL ISelFromPt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">POINT&#160;</td>
          <td class="paramname"><em>pt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPDWORD&#160;</td>
          <td class="paramname"><em>piItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00821">821</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;{</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;    RECT rect;</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    <span class="keywordtype">int</span> y;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> mouseHighWord = 0;</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem;</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sTmp;</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160; </div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rect);</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160; </div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;    <span class="keywordflow">if</span> (pt.y &lt; 0) {</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160; </div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;<span class="comment">         * Mouse is out of bounds above listbox</span></div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;        *piItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((y = pt.y) &gt; rect.bottom) {</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;        y = rect.bottom;</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;        mouseHighWord = 1;</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    }</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160; </div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;    <span class="keywordflow">if</span> (pt.x &lt; 0 || pt.x &gt; rect.right)</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;        mouseHighWord = 1;</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160; </div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;<span class="comment">     * Now just need to check if y mouse coordinate intersects item&#39;s rectangle</span></div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> != OWNERDRAWVAR) {</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;            <span class="keywordflow">if</span> (y &lt; plb-&gt;itemsPerColumn * plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>) {</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;                sItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)((y / plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>) +</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;                        (pt.x / plb-&gt;<a class="code" href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">cxColumn</a>) * plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>);</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160; </div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;<span class="comment">                 * User clicked in blank space at the bottom of a column.</span></div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;<span class="comment">                 * Just select the last item in the column.</span></div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;                mouseHighWord = 1;</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;                sItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + (plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a> - 1) +</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;                        (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)((pt.x / plb-&gt;<a class="code" href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">cxColumn</a>) * plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>);</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;            }</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;            sItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)(y / plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>);</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;        }</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160; </div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;<span class="comment">         * VarHeightOwnerdraw so we gotta do this the hardway...   Set the x</span></div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;<span class="comment">         * coordinate of the mouse down point to be inside the listbox client</span></div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;<span class="comment">         * rectangle since we no longer care about it.  This lets us use the</span></div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;<span class="comment">         * point in rect calls.</span></div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;        pt.x = 8;</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        pt.y = y;</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;        <span class="keywordflow">for</span> (sTmp = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>; sTmp &lt; plb-&gt;cMac; sTmp++) {</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;            (void)<a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, sTmp, &amp;rect);</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rect, pt)) {</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;                *piItem = sTmp;</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;                <span class="keywordflow">return</span> mouseHighWord;</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;            }</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        }</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160; </div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;<span class="comment">         * Point was at the empty area at the bottom of a not full listbox</span></div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;        *piItem = plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1;</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;        <span class="keywordflow">return</span> mouseHighWord;</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;    }</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160; </div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;<span class="comment">     * Check if user clicked on the blank area at the bottom of a not full list.</span></div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;<span class="comment">     * Assumes &gt; 0 items in the listbox.</span></div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;    <span class="keywordflow">if</span> (sItem &gt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1) {</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;        mouseHighWord = 1;</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;        sItem = plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1;</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;    }</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160; </div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;    *piItem = sItem;</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    <span class="keywordflow">return</span> mouseHighWord;</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00886">tagLBIV::cxColumn</a>, <a class="el" href="a00257_source.html#l00885">tagLBIV::cyChar</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00935_source.html#l00111">PtInRect()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00191_source.html#l00731">LBDropObjectHandler()</a>, <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="ab0f5d974473ed2d1730f3bab33096aa8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0f5d974473ed2d1730f3bab33096aa8">&#9670;&nbsp;</a></span>IsSelected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL IsSelected </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wOpFlags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00428">428</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;{</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    LPBYTE lp;</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160; </div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    <span class="keywordflow">if</span> ((sItem &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) || (sItem &lt; 0)) {</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_INVALID_INDEX, <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;<span class="comment">//        return LB_ERR;</span></div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    }</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160; </div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL) {</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordflow">return</span> (sItem == plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    }</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    lp = plb-&gt;<a class="code" href="a01921.html#a7180230449158127a3f88b1441f673f2">rgpch</a> + sItem +</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;             (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> * (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a></div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;                                ? <span class="keyword">sizeof</span>(<a class="code" href="a00257.html#a6091781f063921fc304335d7f87acbd4">LBItem</a>)</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;                                : (plb-&gt;<a class="code" href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">fHasData</a></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                                    ? <span class="keyword">sizeof</span>(<a class="code" href="a01929.html">LBODItem</a>)</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                                    : 0)));</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    sItem = *lp;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160; </div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordflow">if</span> (wOpFlags == HILITEONLY) {</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        sItem &gt;&gt;= 4;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        sItem &amp;= 0x0F;  <span class="comment">/* SELONLY */</span></div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    }</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160; </div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <span class="keywordflow">return</span> sItem;</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00912">tagLBIV::fHasData</a>, <a class="el" href="a00257_source.html#l00908">tagLBIV::fHasStrings</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00879">tagLBIV::rgpch</a>, <a class="el" href="a00371_source.html#l00030">RIP_VERBOSE</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a> , 以及 <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02884">LBoxGetSelItems()</a>, <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>, <a class="el" href="a00182_source.html#l02959">xxxLBSelRange()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a32fb898518333f6e10ba7459f4b05c8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32fb898518333f6e10ba7459f4b05c8b">&#9670;&nbsp;</a></span>LastFullVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> LastFullVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00986">986</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;{</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iLastItem;</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160; </div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR || plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;        iLastItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, FALSE) - 1;</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;        iLastItem = max(iLastItem, plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>);</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;        iLastItem = min(plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + plb-&gt;<a class="code" href="a01921.html#af031416b0c1aad3b57cc15c469f41ecc">cItemFullMax</a> - 1, plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1);</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;    }</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;    <span class="keywordflow">return</span> iLastItem;</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00872">tagLBIV::cItemFullMax</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a> , 以及 <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>.</p>

</div>
</div>
<a id="a4138a4b8a43e2394b7d1ad5008ef7b01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4138a4b8a43e2394b7d1ad5008ef7b01">&#9670;&nbsp;</a></span>LBGetDC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL LBGetDC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00124">124</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;{</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a> = <a class="code" href="a00362.html#a1eefde3313bfafab921776948a45e595">NtUserGetDC</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>));</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <a class="code" href="a00182.html#abbe4f724310a04746730870a9690aa0f">LBInitDC</a>(plb);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00182_source.html#l00100">LBInitDC()</a>, <a class="el" href="a03614_source.html#l05248">NtUserGetDC()</a> , 以及 <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

</div>
</div>
<a id="ad61fcc3b7a00278894d43eb819ed5b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad61fcc3b7a00278894d43eb819ed5b3d">&#9670;&nbsp;</a></span>LBGetItemRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL LBGetItemRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>lprc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00177">177</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;{</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sTmp;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordtype">int</span> clientbottom;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">     * Always allow an item number of 0 so that we can draw the caret which</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment">     * indicates the listbox has the focus even though it is empty.</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment">     * FreeHand 3.1 passes in -1 as the itemNumber and expects</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="comment">     * a non-null rectangle. So we check for -1 specifically.</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="comment">     * BUGTAG: Fix for Bug #540 --Win95B-- SANKAR -- 2/20/95 --</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">if</span> (sItem &amp;&amp; (sItem != -1) &amp;&amp; ((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)sItem &gt;= (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>))</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a>(lprc);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_INVALID_INDEX, <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordflow">return</span> (LB_ERR);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    }</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, lprc);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">         * itemHeight * sItem mod number ItemsPerColumn (itemsPerColumn)</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        lprc-&gt;top = plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a> * mod(sItem, plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        lprc-&gt;bottom = lprc-&gt;top + plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>  <span class="comment">/*+(plb-&gt;OwnerDraw ? 0 : 1)*/</span>;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">         * Remember, this is integer division here...</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        lprc-&gt;left += plb-&gt;<a class="code" href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">cxColumn</a> *</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                  ((sItem / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>) - (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>));</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        lprc-&gt;right = lprc-&gt;left + plb-&gt;<a class="code" href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">cxColumn</a>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="comment">         * Var height owner draw</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        lprc-&gt;right += plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        clientbottom = lprc-&gt;bottom;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">if</span> (sItem &gt;= plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>) {</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            <span class="keywordflow">for</span> (sTmp = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>; sTmp &lt; sItem; sTmp++) {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                lprc-&gt;top = lprc-&gt;top + <a class="code" href="a00194.html#af4e081633c3039e3e07d15288e622028">LBGetVariableHeightItemHeight</a>(plb, sTmp);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            }</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="comment">             * If item number is 0, it may be we are asking for the rect</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="comment">             * associated with a nonexistant item so that we can draw a caret</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="comment">             * indicating focus on an empty listbox.</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            lprc-&gt;bottom = lprc-&gt;top + (sItem &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> ? <a class="code" href="a00194.html#af4e081633c3039e3e07d15288e622028">LBGetVariableHeightItemHeight</a>(plb, sItem) : plb-&gt;cyChar);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;            <span class="keywordflow">return</span> (lprc-&gt;top &lt; clientbottom);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="comment">             * Item we want the rect of is before plb-&gt;iTop.  Thus, negative</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="comment">             * offsets for the rect and it is never visible.</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            <span class="keywordflow">for</span> (sTmp = sItem; sTmp &lt; plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>; sTmp++) {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                lprc-&gt;top = lprc-&gt;top - <a class="code" href="a00194.html#af4e081633c3039e3e07d15288e622028">LBGetVariableHeightItemHeight</a>(plb, sTmp);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            }</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            lprc-&gt;bottom = lprc-&gt;top + <a class="code" href="a00194.html#af4e081633c3039e3e07d15288e622028">LBGetVariableHeightItemHeight</a>(plb, sItem);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="comment">         * For fixed height listboxes</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        lprc-&gt;right += plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        lprc-&gt;top = (sItem - plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>) * plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        lprc-&gt;bottom = lprc-&gt;top + plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keywordflow">return</span> (sItem &gt;= plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>) &amp;&amp;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            (sItem &lt; (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE)));</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00886">tagLBIV::cxColumn</a>, <a class="el" href="a00257_source.html#l00885">tagLBIV::cyChar</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00194_source.html#l00025">LBGetVariableHeightItemHeight()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00371_source.html#l00030">RIP_VERBOSE</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00935_source.html#l00414">SetRectEmpty()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a> , 以及 <a class="el" href="a00257_source.html#l00964">tagLBIV::xOrigin</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00194_source.html#l00101">CItemInWindowVarOwnerDraw()</a>, <a class="el" href="a00182_source.html#l00821">ISelFromPt()</a>, <a class="el" href="a00194_source.html#l00198">LBCalcVarITopScrollAmt()</a>, <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00179_source.html#l00741">xxxLBoxCtlDelete()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>, <a class="el" href="a00182_source.html#l02959">xxxLBSelRange()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a> , 以及 <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a>.</p>

</div>
</div>
<a id="abbe4f724310a04746730870a9690aa0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbe4f724310a04746730870a9690aa0f">&#9670;&nbsp;</a></span>LBInitDC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LBInitDC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00100">100</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;{</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    RECT    rc;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="comment">// Set font</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a28addd302ddcd18f236d3df387de182d">hFont</a>)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        SelectObject(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, plb-&gt;<a class="code" href="a01921.html#a28addd302ddcd18f236d3df387de182d">hFont</a>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="comment">// Set clipping area</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rc);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    IntersectClipRect(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, rc.left, rc.top, rc.right, rc.bottom);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    OffsetWindowOrgEx(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>, 0, NULL);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00257_source.html#l00963">tagLBIV::hFont</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00257_source.html#l00964">tagLBIV::xOrigin</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l00124">LBGetDC()</a> , 以及 <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>.</p>

</div>
</div>
<a id="a78da32aeb3e97b3aa097bc32d5d59e89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78da32aeb3e97b3aa097bc32d5d59e89">&#9670;&nbsp;</a></span>LBoxGetSelItems()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LBoxGetSelItems </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fCountOnly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPINT&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02884">2884</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>&#160;{</div>
<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>&#160;    <span class="keywordtype">int</span> itemsselected = 0;</div>
<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span>&#160; </div>
<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL)</div>
<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>&#160; </div>
<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>; i++) {</div>
<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, i, SELONLY)) {</div>
<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>&#160;            <span class="keywordflow">if</span> (!fCountOnly) {</div>
<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>&#160;                <span class="keywordflow">if</span> (itemsselected &lt; wParam)</div>
<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>&#160;                    *lParam++ = i;</div>
<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>&#160;                <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span>&#160; </div>
<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>&#160;<span class="comment">                     * That&#39;s all the items we can fit in the array.</span></div>
<div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>&#160;                    <span class="keywordflow">return</span> itemsselected;</div>
<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>&#160;                }</div>
<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>&#160;            }</div>
<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>&#160;            itemsselected++;</div>
<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>&#160;        }</div>
<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>&#160;    }</div>
<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>&#160; </div>
<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>&#160;    <span class="keywordflow">return</span> itemsselected;</div>
<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a> , 以及 <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="a0558a2e34e28a7db61cf8fd4c394f172"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0558a2e34e28a7db61cf8fd4c394f172">&#9670;&nbsp;</a></span>LBPrintCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CALLBACK LBPrintCallback </td>
          <td>(</td>
          <td class="paramtype">HDC&#160;</td>
          <td class="paramname"><em>hdc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>lpstr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00273">273</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;{</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordtype">int</span>     xStart;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>    cLen;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    RECT    rc;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keywordflow">if</span> (!lpstr) {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    }</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>)</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        xStart = 0;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        xStart = 2;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    cLen = wcslen(lpstr);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a6ff15d59e2ec810d611f15e071e59de2">fUseTabStops</a>) {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <a class="code" href="a03218.html#ae26ce3dc07600e498cf775825d894b6a">TabTextOut</a>(hdc, xStart, 0, lpstr, cLen,</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            (plb-&gt;<a class="code" href="a01921.html#ad4c13b553aaf7089d455da60aa2ff1a1">iTabPixelPositions</a> ? plb-&gt;<a class="code" href="a01921.html#ad4c13b553aaf7089d455da60aa2ff1a1">iTabPixelPositions</a>[0] : 0),</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;            (plb-&gt;<a class="code" href="a01921.html#ad4c13b553aaf7089d455da60aa2ff1a1">iTabPixelPositions</a> ? (LPINT)&amp;plb-&gt;<a class="code" href="a01921.html#ad4c13b553aaf7089d455da60aa2ff1a1">iTabPixelPositions</a>[1] : NULL),</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;            0, TRUE);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;        rc.left     = 0;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        rc.top      = 0;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        rc.right    = cx;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        rc.bottom   = <a class="code" href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a>;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a>)</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            ExtTextOut(hdc, xStart, 0, ETO_OPAQUE, &amp;rc, lpstr, cLen, NULL);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>)</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            ExtTextOut(hdc, xStart, 0, ETO_CLIPPED, &amp;rc, lpstr, cLen, NULL);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            ExtTextOut(hdc, xStart, 0, 0, NULL, lpstr, cLen, NULL);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    }</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00716_source.html#l00456">cy</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00920">tagLBIV::fUseTabStops</a>, <a class="el" href="a00257_source.html#l00962">tagLBIV::iTabPixelPositions</a>, <a class="el" href="a03218_source.html#l00171">TabTextOut()</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a> , 以及 <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l00319">xxxLBDrawLBItem()</a>.</p>

</div>
</div>
<a id="aec8a47dce8f07292ff58031ce8d1c6e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec8a47dce8f07292ff58031ce8d1c6e6">&#9670;&nbsp;</a></span>LBReleaseDC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LBReleaseDC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00158">158</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;{</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <a class="code" href="a00182.html#af2965fa15cdad40e8176dfb625200256">LBTermDC</a>(plb);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    NtUserReleaseDC(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a> = NULL;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00182_source.html#l00144">LBTermDC()</a> , 以及 <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

</div>
</div>
<a id="a7251bc5c3e763886e91af0025313ccac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7251bc5c3e763886e91af0025313ccac">&#9670;&nbsp;</a></span>LBSetItemData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LBSetItemData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03064">3064</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>&#160;{</div>
<div class="line"><a name="l03069"></a><span class="lineno"> 3069</span>&#160;    LPSTR lpItemText;</div>
<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span>&#160; </div>
<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>&#160;<span class="comment">     * v-ronaar: fix bug #25865, don&#39;t allow negative indices!</span></div>
<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>&#160;    <span class="keywordflow">if</span> ((index != -1) &amp;&amp; ((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>) index &gt;= (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>) plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)) {</div>
<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_INVALID_INDEX, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;LBSetItemData with invalid index&quot;</span>);</div>
<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span>&#160;    }</div>
<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span>&#160; </div>
<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>&#160;<span class="comment">     * No-data listboxes just ignore all LB_SETITEMDATA calls</span></div>
<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>&#160;    <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">fHasData</a>) {</div>
<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span>&#160;    }</div>
<div class="line"><a name="l03085"></a><span class="lineno"> 3085</span>&#160; </div>
<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>&#160;    lpItemText = (LPSTR)plb-&gt;<a class="code" href="a01921.html#a7180230449158127a3f88b1441f673f2">rgpch</a>;</div>
<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>&#160; </div>
<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>&#160;    if (index == -1) {</div>
<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>&#160; </div>
<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>&#160;<span class="comment">         * index == -1 means set the data to all the items</span></div>
<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a>) {</div>
<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>&#160;            <span class="keywordflow">for</span> (index = 0; index &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>; index++) {</div>
<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>&#160; </div>
<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>&#160;                ((<a class="code" href="a00257.html#a7834189a4c8f8e19088773b593228d40">lpLBItem</a>)lpItemText)-&gt;itemData = data;</div>
<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>&#160;                lpItemText += <span class="keyword">sizeof</span>(<a class="code" href="a00257.html#a6091781f063921fc304335d7f87acbd4">LBItem</a>);</div>
<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>&#160;            }</div>
<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>&#160;            <span class="keywordflow">for</span> (index = 0; index &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>; index++) {</div>
<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span>&#160; </div>
<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>&#160;                ((<a class="code" href="a00257.html#a763f0a69a1a392a3db04ce31f8fbcbac">lpLBODItem</a>)lpItemText)-&gt;itemData = data;</div>
<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>&#160;                lpItemText += <span class="keyword">sizeof</span>(<a class="code" href="a00257.html#a1a0c8a4d04c1e16bcedb6e1e4f74053e">LBODItem</a>);</div>
<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>&#160;            }</div>
<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>&#160;        }</div>
<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>&#160;        <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>&#160;    }</div>
<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>&#160; </div>
<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a>) {</div>
<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>&#160; </div>
<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>&#160;        lpItemText = (LPSTR)(lpItemText + (index * <span class="keyword">sizeof</span>(<a class="code" href="a01925.html">LBItem</a>)));</div>
<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>&#160;        ((<a class="code" href="a00257.html#a7834189a4c8f8e19088773b593228d40">lpLBItem</a>)lpItemText)-&gt;itemData = data;</div>
<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>&#160; </div>
<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>&#160;        lpItemText = (LPSTR)(lpItemText + (index * <span class="keyword">sizeof</span>(<a class="code" href="a01929.html">LBODItem</a>)));</div>
<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>&#160;        ((<a class="code" href="a00257.html#a763f0a69a1a392a3db04ce31f8fbcbac">lpLBODItem</a>)lpItemText)-&gt;itemData = data;</div>
<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>&#160;    }</div>
<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00912">tagLBIV::fHasData</a>, <a class="el" href="a00257_source.html#l00908">tagLBIV::fHasStrings</a>, <a class="el" href="a00257_source.html#l00879">tagLBIV::rgpch</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="af2965fa15cdad40e8176dfb625200256"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2965fa15cdad40e8176dfb625200256">&#9670;&nbsp;</a></span>LBTermDC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LBTermDC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00144">144</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;{</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a28addd302ddcd18f236d3df387de182d">hFont</a>)</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        SelectObject(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, <a class="code" href="a00020.html#ae142b9698e40ef094e7481d595ddc9ae">ghFontSys</a>);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00020_source.html#l00101">ghFontSys</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a> , 以及 <a class="el" href="a00257_source.html#l00963">tagLBIV::hFont</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l00158">LBReleaseDC()</a> , 以及 <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>.</p>

</div>
</div>
<a id="aa5fe418a1364a3934d63936c502eee4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5fe418a1364a3934d63936c502eee4e">&#9670;&nbsp;</a></span>SetSelected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetSelected </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iSel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fSelected</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wOpFlags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00924">924</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;{</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;    LPSTR lp;</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    BYTE cMask;</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;    BYTE cSelStatus;</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160; </div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;    <span class="keywordflow">if</span> (iSel &lt; 0 || iSel &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160; </div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL) {</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        <span class="keywordflow">if</span> (fSelected)</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSel;</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;        cSelStatus = (BYTE)fSelected;</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;        <span class="keywordflow">switch</span> (wOpFlags) {</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;        <span class="keywordflow">case</span> HILITEONLY:</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160; </div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;<span class="comment">             * Mask out lo-nibble</span></div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;            cSelStatus = (BYTE)(cSelStatus &lt;&lt; 4);</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;            cMask = 0x0F;</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;        <span class="keywordflow">case</span> SELONLY:</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160; </div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;<span class="comment">             * Mask out hi-nibble</span></div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;            cMask = 0xF0;</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;        <span class="keywordflow">case</span> HILITEANDSEL:</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160; </div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;<span class="comment">             * Mask the byte fully</span></div>
<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;            cSelStatus |= (cSelStatus &lt;&lt; 4);</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;            cMask = 0;</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;        }</div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;        lp = (LPSTR)(plb-&gt;<a class="code" href="a01921.html#a7180230449158127a3f88b1441f673f2">rgpch</a>) + iSel +</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;                (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> * (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a></div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;                                ? <span class="keyword">sizeof</span>(<a class="code" href="a00257.html#a6091781f063921fc304335d7f87acbd4">LBItem</a>)</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;                                : (plb-&gt;<a class="code" href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">fHasData</a> ? <span class="keyword">sizeof</span>(<a class="code" href="a01929.html">LBODItem</a>) : 0)));</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160; </div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;        *lp = (*lp &amp; cMask) | cSelStatus;</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;    }</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00912">tagLBIV::fHasData</a>, <a class="el" href="a00257_source.html#l00908">tagLBIV::fHasStrings</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00879">tagLBIV::rgpch</a> , 以及 <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00182_source.html#l02959">xxxLBSelRange()</a>, <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="ab75df6ab4e167809be4adcff1c4ca42e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab75df6ab4e167809be4adcff1c4ca42e">&#9670;&nbsp;</a></span>xxxAlterHilite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxAlterHilite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fHilite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>OpFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fSelStatus</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03475">3475</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03482"></a><span class="lineno"> 3482</span>&#160;{</div>
<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> low;</div>
<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> high;</div>
<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sLastInWindow;</div>
<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>&#160;    BOOL fCaretOn;</div>
<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span>&#160;    BOOL fSelected;</div>
<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>&#160; </div>
<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>&#160; </div>
<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>&#160;    sLastInWindow = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE);</div>
<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>&#160;    sLastInWindow = min(sLastInWindow, plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1);</div>
<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>&#160;    high = max(i, j) + 1;</div>
<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>&#160; </div>
<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>&#160;    <span class="keywordflow">if</span> (fCaretOn = plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>) {</div>
<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>&#160;    }</div>
<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>&#160; </div>
<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>&#160;    <span class="keywordflow">for</span> (low = min(i, j); low &lt; high; low++) {</div>
<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>&#160;        <span class="keywordflow">if</span> (low != i) {</div>
<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>&#160;            <span class="keywordflow">if</span> (OpFlags &amp; HILITEONLY) {</div>
<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>&#160;                <span class="keywordflow">if</span> (fSelStatus) {</div>
<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span>&#160;                    fSelected = <a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, low, SELONLY);</div>
<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span>&#160;                    fSelected = fHilite;</div>
<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span>&#160;                }</div>
<div class="line"><a name="l03507"></a><span class="lineno"> 3507</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, low, HILITEONLY) != fSelected) {</div>
<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>&#160;                    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> &lt;= low &amp;&amp; low &lt;= sLastInWindow) {</div>
<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>&#160; </div>
<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>&#160;<span class="comment">                         * Invert the item only if it is visible</span></div>
<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span>&#160;                        <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, low, fSelected);</div>
<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>&#160;                    }</div>
<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span>&#160;                    <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, low, fSelected, HILITEONLY);</div>
<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>&#160;                }</div>
<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>&#160;            }</div>
<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>&#160; </div>
<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>&#160;            <span class="keywordflow">if</span> (OpFlags &amp; SELONLY) {</div>
<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span>&#160;                <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, low, fHilite, SELONLY);</div>
<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>&#160;            }</div>
<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>&#160;        }</div>
<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>&#160;    }</div>
<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span>&#160; </div>
<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>&#160;    <span class="keywordflow">if</span> (fCaretOn) {</div>
<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>&#160;    }</div>
<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l03372">xxxLBBlockHilite()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a4226072b101c6f3697b05c241a44d848"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4226072b101c6f3697b05c241a44d848">&#9670;&nbsp;</a></span>xxxCaretDestroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxCaretDestroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03151">3151</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>&#160;{</div>
<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>&#160; </div>
<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>&#160;<span class="comment">     * We&#39;re losing the focus.  Act like up clicks are happening so we release</span></div>
<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>&#160;<span class="comment">     * capture, set the current selection, notify the parent, etc.</span></div>
<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a>)</div>
<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>&#160; </div>
<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>&#160;<span class="comment">         * If we have the capture and we lost the focus, that means we already</span></div>
<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>&#160;<span class="comment">         * changed the selection and we have to notify also the parent about</span></div>
<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>&#160;<span class="comment">         * this. So we need to add also the LBUP_SUCCESS flag in this case.</span></div>
<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>&#160; </div>
<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>&#160;        <a class="code" href="a00182.html#acb5cc8fc5e692299c9c84fdea3a7a072">xxxLBButtonUp</a>(plb, LBUP_RELEASECAPTURE | LBUP_NOTIFY |</div>
<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span>&#160;            (plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a> ? LBUP_SUCCESS : 0));</div>
<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>&#160; </div>
<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>) {</div>
<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>&#160; </div>
<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>&#160;<span class="comment">         * Switch off the Caret blinking</span></div>
<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>&#160;        <a class="code" href="a00362.html#a3d1e04978c2c8aa7594bb2ce1187a6ad">NtUserKillTimer</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), IDSYS_CARET);</div>
<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>&#160; </div>
<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span>&#160;<span class="comment">         * Make sure the caret goes away</span></div>
<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>&#160;        plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a> = FALSE;</div>
<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>&#160;    }</div>
<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>&#160; </div>
<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>&#160;    plb-&gt;<a class="code" href="a01921.html#ab8ce3162badb545a4d4933d983a520e9">fCaret</a> = FALSE;</div>
<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00907">tagLBIV::fAddSelMode</a>, <a class="el" href="a00257_source.html#l00903">tagLBIV::fCaptured</a>, <a class="el" href="a00257_source.html#l00904">tagLBIV::fCaret</a>, <a class="el" href="a00257_source.html#l00902">tagLBIV::fMouseDown</a>, <a class="el" href="a03614_source.html#l04150">NtUserKillTimer()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="a048126fb97fc310aa085c2ba6d6f745d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a048126fb97fc310aa085c2ba6d6f745d">&#9670;&nbsp;</a></span>xxxCheckRedraw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxCheckRedraw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fConditional</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03127">3127</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>&#160;{</div>
<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>&#160; </div>
<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>&#160;    <span class="keywordflow">if</span> (fConditional &amp;&amp; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> &amp;&amp;</div>
<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>&#160;            (sItem &gt; (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE))))</div>
<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>&#160; </div>
<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>&#160;<span class="comment">     * Don&#39;t do anything if the parent is not visible.</span></div>
<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>&#160;    <a class="code" href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a>(plb, (LPRECT)NULL, TRUE);</div>
<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00182_source.html#l00036">xxxLBInvalidateRect()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00185_source.html#l00863">xxxLbDir()</a>, <a class="el" href="a00185_source.html#l01060">xxxLbInsertFile()</a>, <a class="el" href="a00179_source.html#l00325">xxxLBInsertItem()</a>, <a class="el" href="a00179_source.html#l00741">xxxLBoxCtlDelete()</a>, <a class="el" href="a00179_source.html#l00696">xxxLBResetContent()</a> , 以及 <a class="el" href="a00191_source.html#l00436">xxxLBSetFont()</a>.</p>

</div>
</div>
<a id="a0ba8a913f6bc9410a77d03fddce6dff5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ba8a913f6bc9410a77d03fddce6dff5">&#9670;&nbsp;</a></span>xxxFindString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> xxxFindString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>lpstr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fWrap</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02583">2583</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>&#160;{</div>
<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>&#160;<span class="comment">     * Search for a prefix match (case-insensitive equal/prefix)</span></div>
<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>&#160;<span class="comment">     * sStart == -1 means start from beginning, else start looking at sStart+1</span></div>
<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>&#160;<span class="comment">     * assumes cMac &gt; 0.</span></div>
<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sInd;  <span class="comment">/* index of string */</span></div>
<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sStop;          <span class="comment">/* index to stop searching at */</span></div>
<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>&#160;    <a class="code" href="a01925.html">lpLBItem</a> pRg;</div>
<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sortResult;</div>
<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>&#160; </div>
<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>&#160;<span class="comment"> * Owner-Draw version of pRg</span></div>
<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>&#160;<span class="preprocessor">#define pODRg ((lpLBODItem)pRg)</span></div>
<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>&#160;    COMPAREITEMSTRUCT cis;</div>
<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>&#160;    LPWSTR listboxString;</div>
<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>&#160; </div>
<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>&#160; </div>
<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a> &amp;&amp; (!lpstr || !*lpstr))</div>
<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>&#160; </div>
<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>&#160;    <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">fHasData</a>) {</div>
<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;FindString called on NODATA lb&quot;</span>);</div>
<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>&#160;    }</div>
<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>&#160; </div>
<div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>&#160;    <span class="keywordflow">if</span> ((sInd = sStart + 1) &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)</div>
<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>&#160;        sInd = (fWrap ? 0 : plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1);</div>
<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>&#160; </div>
<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>&#160;    sStop = (fWrap ? sInd : 0);</div>
<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>&#160; </div>
<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>&#160;<span class="comment">     * If at end and no wrap, stop right away</span></div>
<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>&#160;    <span class="keywordflow">if</span> (((sStart &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1) &amp;&amp; !fWrap) || (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> &lt; 1)) {</div>
<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>&#160;    }</div>
<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>&#160; </div>
<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>&#160;<span class="comment">     * Apps could pass in an invalid sStart like -2 and we would blow up.</span></div>
<div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>&#160;<span class="comment">     * Win 3.1 would not so we need to fixup sInd to be zero</span></div>
<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>&#160;    <span class="keywordflow">if</span> (sInd &lt; 0)</div>
<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>&#160;        sInd = 0;</div>
<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>&#160; </div>
<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>&#160;    pRg = (<a class="code" href="a00257.html#a7834189a4c8f8e19088773b593228d40">lpLBItem</a>)(plb-&gt;<a class="code" href="a01921.html#a7180230449158127a3f88b1441f673f2">rgpch</a>);</div>
<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>&#160; </div>
<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>&#160;    <span class="keywordflow">do</span> {</div>
<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a>) {</div>
<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>&#160; </div>
<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>&#160;<span class="comment">             * Searching for string matches.</span></div>
<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>&#160;            listboxString = (LPWSTR)((LPBYTE)plb-&gt;<a class="code" href="a01921.html#ae3f41ae09649e6eb90edca233ee0953f">hStrings</a> + pRg[sInd].<a class="code" href="a01925.html#af3803ede947055e0ca678fa0cbcc49e2">offsz</a>);</div>
<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>&#160; </div>
<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>&#160;            <span class="keywordflow">if</span> (code == PREFIX &amp;&amp;</div>
<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>&#160;                listboxString &amp;&amp;</div>
<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>&#160;                *lpstr != TEXT(<span class="charliteral">&#39;[&#39;</span>) &amp;&amp;</div>
<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>&#160;                *listboxString == TEXT(<span class="charliteral">&#39;[&#39;</span>)) {</div>
<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>&#160; </div>
<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>&#160;<span class="comment">                 * If we are looking for a prefix string and the first items</span></div>
<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>&#160;<span class="comment">                 * in this string are [- then we ignore them.  This is so</span></div>
<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>&#160;<span class="comment">                 * that in a directory listbox, the user can goto drives</span></div>
<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>&#160;<span class="comment">                 * by selecting the drive letter.</span></div>
<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>&#160;                listboxString++;</div>
<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>&#160;                <span class="keywordflow">if</span> (*listboxString == TEXT(<span class="charliteral">&#39;-&#39;</span>))</div>
<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>&#160;                    listboxString++;</div>
<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>&#160;            }</div>
<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>&#160; </div>
<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00182.html#a83260e4fa4bbfc927ee1db63eb8cd2a1">Compare</a>(lpstr, listboxString, plb-&gt;<a class="code" href="a01921.html#a184cfe5bce5449060dfeedb44f9cc0dc">dwLocaleId</a>) &lt;= code) {</div>
<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>&#160;               <span class="keywordflow">goto</span> FoundIt;</div>
<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>&#160;            }</div>
<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>&#160; </div>
<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a24b6de31024474ff1550465e19d10ae6">fSort</a>) {</div>
<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>&#160; </div>
<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>&#160;<span class="comment">                 * Send compare item messages to the parent for sorting</span></div>
<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>&#160;                cis.CtlType = ODT_LISTBOX;</div>
<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>&#160;                cis.CtlID = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">spmenu</a>;</div>
<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>&#160;                cis.hwndItem = HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>&#160;                cis.itemID1 = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)-1;</div>
<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>&#160;                cis.itemData1 = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)lpstr;</div>
<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>&#160;                cis.itemID2 = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)sInd;</div>
<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>&#160;                cis.itemData2 = <a class="code" href="a00182.html#a718e81e0f22adc2db136a403777a398c">pODRg</a>[sInd].itemData;</div>
<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>&#160;                cis.dwLocaleId = plb-&gt;<a class="code" href="a01921.html#a184cfe5bce5449060dfeedb44f9cc0dc">dwLocaleId</a>;</div>
<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>&#160; </div>
<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>&#160;                sortResult = SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_COMPAREITEM,</div>
<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>&#160;                        cis.CtlID, (LONG)&amp;cis);</div>
<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>&#160;                ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>&#160; </div>
<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>&#160; </div>
<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>&#160;                <span class="keywordflow">if</span> (sortResult == -1) {</div>
<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>&#160;                   sortResult = LT;</div>
<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (sortResult == 1) {</div>
<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>&#160;                   sortResult = GT;</div>
<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>&#160;                   sortResult = EQ;</div>
<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>&#160;                }</div>
<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>&#160; </div>
<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>&#160;                <span class="keywordflow">if</span> (sortResult &lt;= code) {</div>
<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>&#160;                    <span class="keywordflow">goto</span> FoundIt;</div>
<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>&#160;                }</div>
<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>&#160; </div>
<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>&#160;<span class="comment">                 * Searching for app supplied long data matches.</span></div>
<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>&#160;                <span class="keywordflow">if</span> ((<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)lpstr == <a class="code" href="a00182.html#a718e81e0f22adc2db136a403777a398c">pODRg</a>[sInd].itemData)</div>
<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>&#160;                    <span class="keywordflow">goto</span> FoundIt;</div>
<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>&#160;            }</div>
<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>&#160;        }</div>
<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>&#160; </div>
<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>&#160;<span class="comment">         * Wrap round to beginning of list</span></div>
<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>&#160;        <span class="keywordflow">if</span> (++sInd == plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)</div>
<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>&#160;            sInd = 0;</div>
<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>&#160;    } <span class="keywordflow">while</span> (sInd != sStop);</div>
<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>&#160; </div>
<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>&#160;    sInd = -1;</div>
<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>&#160; </div>
<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>&#160;FoundIt:</div>
<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>&#160;    <span class="keywordflow">return</span> sInd;</div>
<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00182_source.html#l02538">Compare()</a>, <a class="el" href="a00257_source.html#l00969">tagLBIV::dwLocaleId</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00257_source.html#l00912">tagLBIV::fHasData</a>, <a class="el" href="a00257_source.html#l00908">tagLBIV::fHasStrings</a>, <a class="el" href="a00257_source.html#l00900">tagLBIV::fSort</a>, <a class="el" href="a00257_source.html#l00880">tagLBIV::hStrings</a>, <a class="el" href="a00257_source.html#l01022">tagLBItem::offsz</a>, <a class="el" href="a00182.html#a718e81e0f22adc2db136a403777a398c">pODRg</a>, <a class="el" href="a00257_source.html#l00879">tagLBIV::rgpch</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00365_source.html#l01413">tagWND::spmenu</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a> , 以及 <a class="el" href="a00182_source.html#l02729">xxxLBoxCtlCharInput()</a>.</p>

</div>
</div>
<a id="ac49ebe397493c9908b4f22eadd65d5f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49ebe397493c9908b4f22eadd65d5f6">&#9670;&nbsp;</a></span>xxxInsureVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxInsureVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iSel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fPartial</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01916">1916</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>&#160;{</div>
<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sLastVisibleItem;</div>
<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>&#160; </div>
<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>&#160; </div>
<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>&#160;    <span class="keywordflow">if</span> (iSel &lt; plb-&gt;iTop) {</div>
<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>&#160;        <a class="code" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a>(plb, iSel);</div>
<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>&#160;        <span class="keywordflow">if</span> (fPartial) {</div>
<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>&#160; </div>
<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>&#160;<span class="comment">             * 1 must be subtracted to get the last visible item</span></div>
<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>&#160;<span class="comment">             * A part of the fix for Bug #3727 -- 01/14/91 -- SANKAR</span></div>
<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>&#160;            sLastVisibleItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE) - (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)1;</div>
<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>&#160;            sLastVisibleItem = <a class="code" href="a00182.html#a32fb898518333f6e10ba7459f4b05c8b">LastFullVisible</a>(plb);</div>
<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>&#160;        }</div>
<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>&#160; </div>
<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> != OWNERDRAWVAR) {</div>
<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>&#160;            <span class="keywordflow">if</span> (iSel &gt; sLastVisibleItem) {</div>
<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>&#160;                <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>&#160;                    <a class="code" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a>(plb,</div>
<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>&#160;                        ((iSel / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>) -</div>
<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>&#160;                        max(plb-&gt;<a class="code" href="a01921.html#a8abffa689a2601dffeb2ec73f0d35c8b">numberOfColumns</a>-1,0)) * plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>);</div>
<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>&#160;                    <a class="code" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a>(plb, (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)max(0, iSel - sLastVisibleItem + plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>));</div>
<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>&#160;                }</div>
<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>&#160;            }</div>
<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (iSel &gt; sLastVisibleItem)</div>
<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>&#160;            <a class="code" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a>(plb, <a class="code" href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a>(plb, iSel, FALSE));</div>
<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>&#160;    }</div>
<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00986">LastFullVisible()</a>, <a class="el" href="a00194_source.html#l00157">LBPage()</a>, <a class="el" href="a00257_source.html#l00888">tagLBIV::numberOfColumns</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00182_source.html#l01841">xxxNewITop()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a>, <a class="el" href="a00179_source.html#l00741">xxxLBoxCtlDelete()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00182_source.html#l03009">xxxLBSetCurSel()</a> , 以及 <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a>.</p>

</div>
</div>
<a id="a4dc6f46978c05a8a183896c3e9c15caf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc6f46978c05a8a183896c3e9c15caf">&#9670;&nbsp;</a></span>xxxInvertLBItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxInvertLBItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fHilite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01007">1007</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;{</div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;    RECT rect;</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;    BOOL fCaretOn;</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;    HBRUSH hbrControl;</div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;    BOOL    fNewDC;</div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160; </div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160; </div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;    <span class="comment">// Skip if item isn&#39;t showing.</span></div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab77045ac872df15332c0f71fe22c688a">fNoSel</a> || (i &lt; plb-&gt;iTop) || (i &gt;= (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE))))</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160; </div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;    <span class="keywordflow">if</span> (IsLBoxVisible(plb)) {</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;        <a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, i, &amp;rect);</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160; </div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;<span class="comment">         * Only turn off the caret if it is on.  This avoids annoying caret</span></div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;<span class="comment">         * flicker when nesting xxxCaretOns and xxxCaretOffs.</span></div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;        <span class="keywordflow">if</span> (fCaretOn = plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>) {</div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;        }</div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160; </div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;        fNewDC = <a class="code" href="a00182.html#a4138a4b8a43e2394b7d1ad5008ef7b01">LBGetDC</a>(plb);</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160; </div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;        hbrControl = <a class="code" href="a00182.html#aaa2bbef4dbb327ad82e5b1a6acbb713a">xxxLBGetBrush</a>(plb, NULL);</div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160; </div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;        <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a>) {</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;            <span class="keywordflow">if</span> (!fHilite) {</div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;                <a class="code" href="a03212.html#a49402fd1bea89e835e5bc8bc96de744f">FillRect</a>(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, &amp;rect, hbrControl);</div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;                hbrControl = NULL;</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;            }</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160; </div>
<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;            <a class="code" href="a00182.html#af3adc13bc6ed492221a4f1350363fb42">xxxLBDrawLBItem</a>(plb, i, &amp;rect, fHilite, hbrControl);</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160; </div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;<span class="comment">             * We are ownerdraw so fill in the drawitem struct and send off</span></div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;<span class="comment">             * to the owner.</span></div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;            <a class="code" href="a00182.html#a3ef3568d65f91ee105e66263b0863a16">xxxLBoxDrawItem</a>(plb, i, ODA_SELECT,</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;                    (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)(fHilite ? ODS_SELECTED : 0), &amp;rect);</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;        }</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160; </div>
<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;        <span class="keywordflow">if</span> (fNewDC)</div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;            <a class="code" href="a00182.html#aec8a47dce8f07292ff58031ce8d1c6e6">LBReleaseDC</a>(plb);</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160; </div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;<span class="comment">         * Turn the caret back on only if it was originally on.</span></div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;        <span class="keywordflow">if</span> (fCaretOn) {</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;        }</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;    }</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a03212_source.html#l00029">FillRect()</a>, <a class="el" href="a00257_source.html#l00941">tagLBIV::fNoSel</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00124">LBGetDC()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00182_source.html#l00158">LBReleaseDC()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00182_source.html#l00319">xxxLBDrawLBItem()</a>, <a class="el" href="a00182_source.html#l00058">xxxLBGetBrush()</a>, <a class="el" href="a00182_source.html#l03285">xxxLBoxDrawItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00182_source.html#l03009">xxxLBSetCurSel()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="ace547b9010d40429d3d1da2d6f03ffdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace547b9010d40429d3d1da2d6f03ffdf">&#9670;&nbsp;</a></span>xxxLBBlockHilite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBBlockHilite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iSelFromPt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fKeyBoard</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03372">3372</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>&#160;{</div>
<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sCurPosOffset;</div>
<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sLastPosOffset;</div>
<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sHiliteOrSel;</div>
<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>&#160;    BOOL fUseSelStatus;</div>
<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>&#160;    BOOL DeHiliteStatus;</div>
<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>&#160; </div>
<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>&#160; </div>
<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>&#160;    <span class="keywordflow">if</span> (fKeyBoard) {</div>
<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>&#160; </div>
<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>&#160;<span class="comment">         * Set both Hilite and Selection states</span></div>
<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>&#160;        sHiliteOrSel = HILITEANDSEL;</div>
<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>&#160; </div>
<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>&#160;<span class="comment">         * Do not use the Selection state while de-hiliting</span></div>
<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>&#160;        fUseSelStatus = FALSE;</div>
<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span>&#160;        DeHiliteStatus = FALSE;</div>
<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>&#160; </div>
<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span>&#160;<span class="comment">         * Set/Reset only the Hilite state</span></div>
<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>&#160;        sHiliteOrSel = HILITEONLY;</div>
<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>&#160; </div>
<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span>&#160;<span class="comment">         * Use the selection state for de-hilighting</span></div>
<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>&#160;        fUseSelStatus = TRUE;</div>
<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>&#160;        DeHiliteStatus = plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>;</div>
<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span>&#160;    }</div>
<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>&#160; </div>
<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>&#160; </div>
<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>&#160; </div>
<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>&#160;<span class="comment">     * The idea of the routine is to :</span></div>
<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>&#160;<span class="comment">     *          1.  De-hilite the old range (iMouseDown to iLastMouseDown)  and</span></div>
<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>&#160;<span class="comment">     *          2.  Hilite the new range (iMouseDwon to iSelFromPt)</span></div>
<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span>&#160; </div>
<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>&#160;<span class="comment">     * Offset of current mouse position from the anchor point</span></div>
<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>&#160;    sCurPosOffset = plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> - iSelFromPt;</div>
<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span>&#160; </div>
<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>&#160;<span class="comment">     * Offset of last mouse position from the anchor point</span></div>
<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>&#160;    sLastPosOffset = plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> - plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>;</div>
<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>&#160; </div>
<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>&#160;<span class="comment">     * Check if both current position and last position lie on the same</span></div>
<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>&#160;<span class="comment">     * side of the anchor point.</span></div>
<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>&#160;    <span class="keywordflow">if</span> ((sCurPosOffset * sLastPosOffset) &gt;= 0) {</div>
<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span>&#160; </div>
<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>&#160;<span class="comment">         * Yes they are on the same side; So, highlight/dehighlight only</span></div>
<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>&#160;<span class="comment">         * the difference.</span></div>
<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>&#160;        <span class="keywordflow">if</span> (abs(sCurPosOffset) &gt; abs(sLastPosOffset)) {</div>
<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span>&#160;            <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>, iSelFromPt,</div>
<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>&#160;                    plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, sHiliteOrSel, FALSE);</div>
<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>&#160;            <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, iSelFromPt, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>, DeHiliteStatus,</div>
<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>&#160;                    sHiliteOrSel, fUseSelStatus);</div>
<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span>&#160;        }</div>
<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>&#160;        <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>,</div>
<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span>&#160;                DeHiliteStatus, sHiliteOrSel, fUseSelStatus);</div>
<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span>&#160;        <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, iSelFromPt,</div>
<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span>&#160;                plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, sHiliteOrSel, FALSE);</div>
<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span>&#160;    }</div>
<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00918">tagLBIV::fNewItemState</a>, <a class="el" href="a00257_source.html#l00958">tagLBIV::iLastMouseMove</a>, <a class="el" href="a00257_source.html#l00954">tagLBIV::iMouseDown</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="acb5cc8fc5e692299c9c84fdea3a7a072"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb5cc8fc5e692299c9c84fdea3a7a072">&#9670;&nbsp;</a></span>xxxLBButtonUp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBButtonUp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>uFlags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01728">1728</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160;{</div>
<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160; </div>
<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160; </div>
<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;<span class="comment">     * If the list box is an Extended listbox, then change the select status</span></div>
<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;<span class="comment">     * of all items between the anchor and the last mouse position to the</span></div>
<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;<span class="comment">     * newItemState</span></div>
<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == EXTENDEDSEL)</div>
<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;        <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>,</div>
<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, SELONLY, FALSE);</div>
<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160; </div>
<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;<span class="comment">     * This is a combo box and user upclicked outside the listbox</span></div>
<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;<span class="comment">     * so we want to restore the original selection.</span></div>
<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a> &amp;&amp; (uFlags &amp; LBUP_RESETSELECTION)) {</div>
<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;        <span class="keywordtype">int</span> iSelOld;</div>
<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160; </div>
<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;        iSelOld = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>;</div>
<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160; </div>
<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;        <span class="keywordflow">if</span> (iSelOld &gt;= 0)</div>
<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>, FALSE);</div>
<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160; </div>
<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;        plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = plb-&gt;<a class="code" href="a01921.html#a2ce25ccdb5a932ee4e4a66b2a9311714">iLastSelection</a>;</div>
<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;        <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>, TRUE);</div>
<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160; </div>
<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;        <span class="keywordflow">if</span> (!(uFlags &amp; LBUP_NOTIFY) &amp;&amp; plb-&gt;<a class="code" href="a01921.html#a8801059e7c206fcf355f653186fc724f">fNotify</a> &amp;&amp; (iSelOld != plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>))</div>
<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;            <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>&#160;    }</div>
<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>&#160; </div>
<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160;    <a class="code" href="a00362.html#a3d1e04978c2c8aa7594bb2ce1187a6ad">NtUserKillTimer</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), IDSYS_SCROLL);</div>
<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160;    plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a> = FALSE;</div>
<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a>) {</div>
<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a> = FALSE;</div>
<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160;        <span class="keywordflow">if</span> (uFlags &amp; LBUP_RELEASECAPTURE)</div>
<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160;            NtUserReleaseCapture();</div>
<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;    }</div>
<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;<span class="comment">     * Don&#39;t scroll item as long as any part of it is visible</span></div>
<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> &lt; plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> ||</div>
<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;        plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> &gt; plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE))</div>
<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;        <a class="code" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, FALSE);</div>
<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160; </div>
<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a8801059e7c206fcf355f653186fc724f">fNotify</a>) {</div>
<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;        <span class="keywordflow">if</span> (uFlags &amp; LBUP_NOTIFY)  {</div>
<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;            <span class="keywordflow">if</span> (uFlags &amp; LBUP_SUCCESS) {</div>
<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;<span class="comment">                 * ArtMaster needs this SELCHANGE notification now!</span></div>
<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;                <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">fDoubleClick</a>) &amp;&amp; !TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WFWIN31COMPAT))</div>
<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;                    <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160; </div>
<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;<span class="comment">                 * Notify owner of click or double click on selection</span></div>
<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>&#160;                <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, (plb-&gt;<a class="code" href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">fDoubleClick</a>) ? LBN_DBLCLK : LBN_SELCHANGE);</div>
<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>&#160;<span class="comment">                 * Notify owner that the attempted selection was cancelled.</span></div>
<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>&#160;                <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCANCEL);</div>
<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>&#160;            }</div>
<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (uFlags &amp; LBUP_SELCHANGE) {</div>
<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;<span class="comment">             * Did we do some semi-selecting with mouse moves, then hit Enter?</span></div>
<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160;<span class="comment">             * If so, we need to make sure the app knows that something was</span></div>
<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;<span class="comment">             * really truly selected.</span></div>
<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WFWIN40COMPAT));</div>
<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a2ce25ccdb5a932ee4e4a66b2a9311714">iLastSelection</a> != plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>)</div>
<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;                <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160; </div>
<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;        }</div>
<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;    }</div>
<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160; </div>
<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00903">tagLBIV::fCaptured</a>, <a class="el" href="a00257_source.html#l00905">tagLBIV::fDoubleClick</a>, <a class="el" href="a00257_source.html#l00902">tagLBIV::fMouseDown</a>, <a class="el" href="a00257_source.html#l00918">tagLBIV::fNewItemState</a>, <a class="el" href="a00257_source.html#l00901">tagLBIV::fNotify</a>, <a class="el" href="a00257_source.html#l00958">tagLBIV::iLastMouseMove</a>, <a class="el" href="a00257_source.html#l00951">tagLBIV::iLastSelection</a>, <a class="el" href="a00257_source.html#l00954">tagLBIV::iMouseDown</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a03614_source.html#l04150">NtUserKillTimer()</a>, <a class="el" href="a00257_source.html#l00967">tagLBIV::pcbox</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l01140">xxxNotifyOwner()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l03151">xxxCaretDestroy()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="af3adc13bc6ed492221a4f1350363fb42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3adc13bc6ed492221a4f1350363fb42">&#9670;&nbsp;</a></span>xxxLBDrawLBItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBDrawLBItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>lprect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fHilite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HBRUSH&#160;</td>
          <td class="paramname"><em>hbr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00319">319</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;{</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    LPWSTR lpstr;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> rgbSave;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> rgbBkSave;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>    uFlags;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    HDC     hdc = plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<span class="comment">     * If the item is selected, then fill with highlight color</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="keywordflow">if</span> (fHilite) {</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        <a class="code" href="a03212.html#a49402fd1bea89e835e5bc8bc96de744f">FillRect</a>(hdc, lprect, SYSHBR(HIGHLIGHT));</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        rgbBkSave = SetBkColor(hdc, SYSRGB(HIGHLIGHT));</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        rgbSave = SetTextColor(hdc, SYSRGB(HIGHLIGHTTEXT));</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<span class="comment">         * If fUseTabStops, we must fill the background, because later we use</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="comment">         * LBTabTheTextOutForWimps(), which fills the background only partially</span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment">         * Fix for Bug #1509 -- 01/25/91 -- SANKAR --</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <span class="keywordflow">if</span> ((hbr != NULL) &amp;&amp; ((sItem == plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>) || (plb-&gt;<a class="code" href="a01921.html#a6ff15d59e2ec810d611f15e071e59de2">fUseTabStops</a>))) {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            <a class="code" href="a03212.html#a49402fd1bea89e835e5bc8bc96de744f">FillRect</a>(hdc, lprect, hbr);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        }</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160; </div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    uFlags = DST_COMPLEX;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    lpstr = <a class="code" href="a00176.html#af8fe5eea4ff2e080e2f80ff86719a3c8">GetLpszItem</a>(plb, sItem);</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordflow">if</span> (TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WFDISABLED)) {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">if</span> ((COLORREF)SYSRGB(GRAYTEXT) != GetBkColor(hdc))</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;            SetTextColor(hdc, SYSRGB(GRAYTEXT));</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;            uFlags |= DSS_UNION;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160; </div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    DrawState(hdc, SYSHBR(WINDOWTEXT),</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        (DRAWSTATEPROC)<a class="code" href="a00182.html#a0558a2e34e28a7db61cf8fd4c394f172">LBPrintCallback</a>,</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        (LPARAM)lpstr,</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        (WPARAM)plb,</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        lprect-&gt;left,</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        lprect-&gt;top,</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        lprect-&gt;right-lprect-&gt;left,</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        lprect-&gt;bottom-lprect-&gt;top,</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        uFlags);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; </div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keywordflow">if</span> (fHilite) {</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        SetTextColor(hdc, rgbSave);</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        SetBkColor(hdc, rgbBkSave);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    }</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a03212_source.html#l00029">FillRect()</a>, <a class="el" href="a00257_source.html#l00920">tagLBIV::fUseTabStops</a>, <a class="el" href="a00176_source.html#l00812">GetLpszItem()</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00182_source.html#l00273">LBPrintCallback()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>.</p>

</div>
</div>
<a id="aaa2bbef4dbb327ad82e5b1a6acbb713a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa2bbef4dbb327ad82e5b1a6acbb713a">&#9670;&nbsp;</a></span>xxxLBGetBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH xxxLBGetBrush </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HBRUSH *&#160;</td>
          <td class="paramname"><em>phbrOld</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00058">58</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    HBRUSH  hbr;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    HBRUSH  hbrOld;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    SetBkMode(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, OPAQUE);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="comment">// Get brush &amp; colors</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#a6053af0b243b6737640988eb63081de3">spwndParent</a> == NULL) ||</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        (REBASEPWND(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, spwndParent) == <a class="code" href="a03743.html#a6fff890dabd74b268fbcba3368ecc560">_GetDesktopWindow</a>())) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        hbr = <a class="code" href="a03611.html#abfc832913f8578ba8a06e1c97b32eac0">GetControlColor</a>(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>),</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                              plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, WM_CTLCOLORLISTBOX);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        hbr = <a class="code" href="a03611.html#adccbe0a4e456bc7a91fcf34092672f21">GetControlBrush</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, WM_CTLCOLORLISTBOX);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="comment">// Select brush into dc</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordflow">if</span> (hbr != NULL) {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        hbrOld = SelectObject(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, hbr);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">if</span> (phbrOld)</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            *phbrOld = hbrOld;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">return</span>(hbr);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03743_source.html#l00229">_GetDesktopWindow()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a03611_source.html#l00623">GetControlBrush()</a>, <a class="el" href="a03611_source.html#l00641">GetControlColor()</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00365_source.html#l01392">tagWND::spwndParent</a> , 以及 <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>.</p>

</div>
</div>
<a id="ad333a7027751ae3d3eb3b4e5ba986b80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad333a7027751ae3d3eb3b4e5ba986b80">&#9670;&nbsp;</a></span>xxxLBInvalidateRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxLBInvalidateRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>lprc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fErase</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00036">36</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordflow">if</span> (IsLBoxVisible(plb)) {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <a class="code" href="a00362.html#acfbb149ad39bc9929fb7063d4276e470">NtUserInvalidateRect</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), lprc, fErase);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    }</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#abae0c031d21e87807959f436a83ce8a4">fRedraw</a>)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a80b0656135ca243454b281299f0cebe2">fDeferUpdate</a> = TRUE;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00894">tagLBIV::fDeferUpdate</a>, <a class="el" href="a00257_source.html#l00893">tagLBIV::fRedraw</a>, <a class="el" href="a03614_source.html#l04092">NtUserInvalidateRect()</a> , 以及 <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l03127">xxxCheckRedraw()</a>, <a class="el" href="a00179_source.html#l00741">xxxLBoxCtlDelete()</a>, <a class="el" href="a00182_source.html#l02959">xxxLBSelRange()</a>, <a class="el" href="a00179_source.html#l00996">xxxLBSetCount()</a> , 以及 <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a>.</p>

</div>
</div>
<a id="ac810d042302264353670e5c8e682f729"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac810d042302264353670e5c8e682f729">&#9670;&nbsp;</a></span>xxxLBoxCaretBlinker()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxLBoxCaretBlinker </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wMsg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>nIDEvent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>dwTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01963">1963</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>&#160;{</div>
<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwnd;</div>
<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>&#160;    <a class="code" href="a01921.html">PLBIV</a> plb;</div>
<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>&#160; </div>
<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>&#160;<span class="comment">     * Standard parameters for a timer callback function that aren&#39;t used.</span></div>
<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>&#160;<span class="comment">     * Mentioned here to avoid compiler warnings</span></div>
<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>&#160;    UNREFERENCED_PARAMETER(wMsg);</div>
<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>&#160;    UNREFERENCED_PARAMETER(nIDEvent);</div>
<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>&#160;    UNREFERENCED_PARAMETER(dwTime);</div>
<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160; </div>
<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160;    pwnd = <a class="code" href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a>(hwnd);</div>
<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;    plb = ((<a class="code" href="a00257.html#a902d9d1c6aa646f726373a5bb52fd9e5">PLBWND</a>)pwnd)-&gt;pLBIV;</div>
<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160; </div>
<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160;<span class="comment">     * Check if the Caret is ON, if so, switch it OFF</span></div>
<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, !plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>);</div>
<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00293_source.html#l00090">ValidateHwnd</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>.</p>

</div>
</div>
<a id="ab89241010aba4811e9296e83ddfaa82f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab89241010aba4811e9296e83ddfaa82f">&#9670;&nbsp;</a></span>xxxLBoxCtlCharInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBoxCtlCharInput </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>inputChar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02729">2729</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>&#160;{</div>
<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSel;</div>
<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>&#160;    BOOL fControl;</div>
<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160; </div>
<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160; </div>
<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> == 0 || plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a>) {</div>
<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>&#160; </div>
<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160;<span class="comment">         * Get out if we are in the middle of mouse routines or if we have no</span></div>
<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160;<span class="comment">         * items in the listbox, we just return without doing anything.</span></div>
<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>&#160;    }</div>
<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>&#160; </div>
<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>&#160;    fControl = (<a class="code" href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a>(VK_CONTROL) &lt; 0);</div>
<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>&#160; </div>
<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>&#160;    <span class="keywordflow">switch</span> (inputChar) {</div>
<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>&#160;    <span class="keywordflow">case</span> VK_ESCAPE:</div>
<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a> = 0;</div>
<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>)</div>
<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[0] = 0;</div>
<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160; </div>
<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;    <span class="keywordflow">case</span> VK_BACK:</div>
<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>) {</div>
<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>--] = 0;</div>
<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a24b6de31024474ff1550465e19d10ae6">fSort</a>) {</div>
<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160;                iSel = -1;</div>
<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160;                <span class="keywordflow">goto</span> TypeSearch;</div>
<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160;            }</div>
<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>&#160;        }</div>
<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160; </div>
<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160;    <span class="keywordflow">case</span> VK_SPACE:</div>
<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a> || plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == MULTIPLESEL)</div>
<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>&#160;        <span class="comment">/* Otherwise, for single/extended selection listboxes not in add</span></div>
<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>&#160;<span class="comment">         * selection mode, let the  space go thru as a type search character</span></div>
<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>&#160;<span class="comment">         * FALL THRU</span></div>
<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>&#160; </div>
<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>&#160; </div>
<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>&#160;<span class="comment">         * Move selection to first item beginning with the character the</span></div>
<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>&#160;<span class="comment">         * user typed.  We don&#39;t want do this if we are using owner draw.</span></div>
<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">fHasStrings</a>) {</div>
<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>&#160;            <span class="comment">// Incremental Type Search processing</span></div>
<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160;            <span class="comment">// update szTypeSearch string and then move to the first item from</span></div>
<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160;            <span class="comment">// the current selection whose prefix matches szTypeSearch</span></div>
<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160;            <span class="comment">// the szTypeSearch will continue to grow until a &quot;long enough&quot;</span></div>
<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>&#160;            <span class="comment">// gap between key entries is encountered -- at which point any</span></div>
<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>&#160;            <span class="comment">// more searching will start over</span></div>
<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160; </div>
<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160;<span class="comment">             * Undo CONTROL-char to char</span></div>
<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>&#160;            <span class="keywordflow">if</span> (fControl &amp;&amp; inputChar &lt; 0x20)</div>
<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>&#160;                inputChar += 0x40;</div>
<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160; </div>
<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a> == <a class="code" href="a00182.html#a61f572dfb2a8ee4f0b9632342e190071">MAX_TYPESEARCH</a>) {</div>
<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160;                NtUserMessageBeep(0);</div>
<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>&#160;            }</div>
<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>&#160;            iSel = -1;</div>
<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160; </div>
<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a> == NULL)</div>
<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>&#160;                plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a> = (LPWSTR)UserLocalAlloc(HEAP_ZERO_MEMORY, <span class="keyword">sizeof</span>(WCHAR) * (<a class="code" href="a00182.html#a61f572dfb2a8ee4f0b9632342e190071">MAX_TYPESEARCH</a> + 1));</div>
<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>&#160; </div>
<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a> == NULL) {</div>
<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>&#160;                NtUserMessageBeep(0);</div>
<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>&#160;            }</div>
<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>&#160; </div>
<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>++] = (WCHAR) inputChar;</div>
<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>]   = 0;</div>
<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>&#160; </div>
<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span>&#160;TypeSearch:</div>
<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a24b6de31024474ff1550465e19d10ae6">fSort</a>) {</div>
<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>&#160;                <span class="comment">// Set timer to determine when to kill incremental searching</span></div>
<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>&#160;                <a class="code" href="a00362.html#ad70225d60448a064c552efafd13fce64">NtUserSetTimer</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), IDSYS_LBSEARCH,</div>
<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>&#160;                               <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a931541f19a143339ff4639317f7e88e8">dtLBSearch</a>, NULL);</div>
<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>&#160;                <span class="comment">// If this is not a sorted listbox, no incremental search.</span></div>
<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>&#160;                plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a> = 0;</div>
<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>&#160;                iSel = plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>;</div>
<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>&#160;            }</div>
<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>&#160; </div>
<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>&#160; </div>
<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>&#160;<span class="comment">             * Search for the item beginning with the given character starting</span></div>
<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>&#160;<span class="comment">             * at iSel+1.  We will wrap the search to the beginning of the</span></div>
<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>&#160;<span class="comment">             * listbox if we don&#39;t find the item.   If SHIFT is down and we are</span></div>
<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>&#160;<span class="comment">             * a multiselection lb, then the item&#39;s state will be set to</span></div>
<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>&#160;<span class="comment">             * plb-&gt;fNewItemState according to the current mode.</span></div>
<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160;            iSel = <a class="code" href="a00182.html#a0ba8a913f6bc9410a77d03fddce6dff5">xxxFindString</a>(plb, plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>, iSel, PREFIX, TRUE);</div>
<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;            <span class="keywordflow">if</span> (iSel == -1) {</div>
<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>&#160;                <span class="comment">// no match found -- check for prefix match</span></div>
<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>&#160;                <span class="comment">// (i.e. &quot;p&quot; find FIRST item that starts with &#39;p&#39;,</span></div>
<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>&#160;                <span class="comment">//       &quot;pp&quot; find NEXT item that starts with &#39;p&#39;)</span></div>
<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>&#160;                <span class="keywordflow">if</span>(plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>)</div>
<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>&#160;                {</div>
<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>&#160;                    plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a>--;</div>
<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>&#160;                    <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">iTypeSearch</a> == 1) &amp;&amp; (plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[0] == plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[1]))</div>
<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>&#160;                    {</div>
<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>&#160;                        plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>[1] = 0;</div>
<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>&#160;                        iSel = <a class="code" href="a00182.html#a0ba8a913f6bc9410a77d03fddce6dff5">xxxFindString</a>(plb, plb-&gt;<a class="code" href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">pszTypeSearch</a>, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, PREFIX, TRUE);</div>
<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>&#160;                    }</div>
<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>&#160;                }</div>
<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>&#160;            }</div>
<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>&#160;            <span class="comment">// if match is found -- select it</span></div>
<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>&#160;            <span class="keywordflow">if</span> (iSel != -1)</div>
<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>&#160;            {</div>
<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>&#160;CtlKeyInput:</div>
<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>&#160;                <a class="code" href="a00182.html#af7a1705d26761d569c585ce4dea28f90">xxxLBoxCtlKeyInput</a>(plb, <a class="code" href="a00182.html#a9aa45f03a653bac93ca3b416263a2368">LB_KEYDOWN</a>, iSel);</div>
<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160; </div>
<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160;            }</div>
<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a> != NULL) {</div>
<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>&#160;                iSel = (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)<a class="code" href="a00041.html#a6bdc5311bb7640aba29656dd7bb4e71a">SendMessageWorker</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, WM_CHARTOITEM,</div>
<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>&#160;                        MAKELONG(inputChar, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>), (LONG)HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), fAnsi);</div>
<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>&#160;                ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>&#160;            } <span class="keywordflow">else</span></div>
<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>&#160;                iSel = -1;</div>
<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>&#160; </div>
<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>&#160;            <span class="keywordflow">if</span> (iSel != -1 &amp;&amp; iSel != -2)</div>
<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>&#160;                <span class="keywordflow">goto</span> CtlKeyInput;</div>
<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>&#160; </div>
<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>&#160;        }</div>
<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>&#160;    }</div>
<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00365_source.html#l00985">tagSERVERINFO::dtLBSearch</a>, <a class="el" href="a00257_source.html#l00907">tagLBIV::fAddSelMode</a>, <a class="el" href="a00257_source.html#l00908">tagLBIV::fHasStrings</a>, <a class="el" href="a00257_source.html#l00902">tagLBIV::fMouseDown</a>, <a class="el" href="a00257_source.html#l00900">tagLBIV::fSort</a>, <a class="el" href="a03611_source.html#l00589">GetKeyState()</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00257_source.html#l00970">tagLBIV::iTypeSearch</a>, <a class="el" href="a00182_source.html#l00014">LB_KEYDOWN</a>, <a class="el" href="a00182_source.html#l00023">MAX_TYPESEARCH</a>, <a class="el" href="a03614_source.html#l04749">NtUserSetTimer()</a>, <a class="el" href="a00257_source.html#l00971">tagLBIV::pszTypeSearch</a>, <a class="el" href="a00041_source.html#l00258">SendMessageWorker()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00182_source.html#l02583">xxxFindString()</a> , 以及 <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="ab4fb2819fdd86c30f99e14e003eff202"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4fb2819fdd86c30f99e14e003eff202">&#9670;&nbsp;</a></span>xxxLBoxCtlHScroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBoxCtlHScroll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xAmt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00611">611</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;{</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    <span class="keywordtype">int</span> newOrigin = plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>;</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <span class="keywordtype">int</span> oldOrigin = plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    <span class="keywordtype">int</span> windowWidth;</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    RECT rc;</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160; </div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160; </div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;<span class="comment">     * Update the window so that we don&#39;t run into problems with invalid</span></div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;<span class="comment">     * regions during the horizontal scroll.</span></div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160; </div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;<span class="comment">         * Handle multicolumn scrolling in a separate segment</span></div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        <a class="code" href="a00188.html#ab994487194ef30089a75560dd669455a">xxxLBoxCtlHScrollMultiColumn</a>(plb, cmd, xAmt);</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;    }</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160; </div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rc);</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    windowWidth = rc.right;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160; </div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) {</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160; </div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;        <span class="keywordflow">switch</span> (cmd) {</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;        <span class="keywordflow">case</span> SB_LINEUP:</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;            newOrigin -= plb-&gt;<a class="code" href="a01921.html#a1124072913a956eef893c0f0eaeb37ee">cxChar</a>;</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160; </div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        <span class="keywordflow">case</span> SB_LINEDOWN:</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;            newOrigin += plb-&gt;<a class="code" href="a01921.html#a1124072913a956eef893c0f0eaeb37ee">cxChar</a>;</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160; </div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;        <span class="keywordflow">case</span> SB_PAGEUP:</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;            newOrigin -= (windowWidth / 3) * 2;</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160; </div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;        <span class="keywordflow">case</span> SB_PAGEDOWN:</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            newOrigin += (windowWidth / 3) * 2;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160; </div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        <span class="keywordflow">case</span> SB_THUMBTRACK:</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;        <span class="keywordflow">case</span> SB_THUMBPOSITION:</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;            newOrigin = xAmt;</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160; </div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;        <span class="keywordflow">case</span> SB_TOP:</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;            newOrigin = 0;</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        <span class="keywordflow">case</span> SB_BOTTOM:</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;            newOrigin = plb-&gt;<a class="code" href="a01921.html#ac78ad025d5ad2100193d42ab9c1a963e">maxWidth</a>;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160; </div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        <span class="keywordflow">case</span> SB_ENDSCROLL:</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;            <a class="code" href="a00179.html#a991eafcaf220c88b32c3bba40a8ed01c">xxxLBShowHideScrollBars</a>(plb);</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;        }</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160; </div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;        plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a> = newOrigin;</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a> = <a class="code" href="a00179.html#ab88cd7027b6acd69d6c39d4eac56cc53">xxxSetLBScrollParms</a>(plb, SB_HORZ);</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160; </div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;        <span class="keywordflow">if</span>(oldOrigin != plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>)  {</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;            HWND hwnd = HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;            <a class="code" href="a00362.html#ab79fb1908c7da8bfc42396a59d16eb20">NtUserScrollWindowEx</a>(hwnd, oldOrigin-plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>,</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                0, NULL, &amp;rc, NULL, NULL, SW_SCROLLWINDOW |</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;                SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;            <a class="code" href="a00026.html#a8bc3d6c71e90bc4c6472c0647af92301">UpdateWindow</a>(hwnd);</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        }</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160; </div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    }</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160; </div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;        <span class="comment">// this is a less-than-ideal fix for ImageMind ScreenSaver (Win95</span></div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;        <span class="comment">// B#8252) but it works and it doesn&#39;t hurt anybody -- JEFFBOG 10/28/94</span></div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;        <a class="code" href="a00179.html#ab88cd7027b6acd69d6c39d4eac56cc53">xxxSetLBScrollParms</a>(plb, SB_HORZ);</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160; </div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00884">tagLBIV::cxChar</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00965">tagLBIV::maxWidth</a>, <a class="el" href="a00362.html#ab79fb1908c7da8bfc42396a59d16eb20">NtUserScrollWindowEx()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00026_source.html#l03049">UpdateWindow()</a>, <a class="el" href="a00257_source.html#l00964">tagLBIV::xOrigin</a>, <a class="el" href="a00188_source.html#l00071">xxxLBoxCtlHScrollMultiColumn()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a> , 以及 <a class="el" href="a00179_source.html#l00026">xxxSetLBScrollParms()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a> , 以及 <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a>.</p>

</div>
</div>
<a id="af7a1705d26761d569c585ce4dea28f90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7a1705d26761d569c585ce4dea28f90">&#9670;&nbsp;</a></span>xxxLBoxCtlKeyInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBoxCtlKeyInput </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>vKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02000">2000</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>&#160;{</div>
<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iNewISel;</div>
<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> cItemPageScroll;</div>
<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>&#160;    <a class="code" href="a01889.html">PCBOX</a> pcbox;</div>
<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>&#160;    BOOL fDropDownComboBox;</div>
<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>&#160;    BOOL fExtendedUIComboBoxClosed;</div>
<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>&#160;    BOOL hScrollBar = TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WFHSCROLL);</div>
<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wModifiers = 0;</div>
<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>&#160;    BOOL fSelectKey = FALSE;  <span class="comment">/* assume it is a navigation key */</span></div>
<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160;    HWND hwnd = HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>&#160; </div>
<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160; </div>
<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;    pcbox = plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>;</div>
<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160; </div>
<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;<span class="comment">     * Is this a dropdown style combo box/listbox ?</span></div>
<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>&#160;    fDropDownComboBox = pcbox &amp;&amp; (pcbox-&gt;<a class="code" href="a01889.html#a483879a0115f80176e3e2f16ed570039">CBoxStyle</a> &amp; SDROPPABLE);</div>
<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>&#160; </div>
<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>&#160;<span class="comment">     *Is this an extended ui combo box which is closed?</span></div>
<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>&#160;    fExtendedUIComboBoxClosed = fDropDownComboBox &amp;&amp; pcbox-&gt;<a class="code" href="a01889.html#abf7af4e542b547981f74b0cf6eb1ebef">fExtendedUI</a> &amp;&amp;</div>
<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>&#160;                              !pcbox-&gt;<a class="code" href="a01889.html#a41f22a49cb001e7a271cd52129597f71">fLBoxVisible</a>;</div>
<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>&#160; </div>
<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a> || (!plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> &amp;&amp; vKey != VK_F4)) {</div>
<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>&#160; </div>
<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>&#160;<span class="comment">         * Ignore keyboard input if we are in the middle of a mouse down deal or</span></div>
<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>&#160;<span class="comment">         * if there are no items in the listbox. Note that we let F4&#39;s go</span></div>
<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>&#160;<span class="comment">         * through for combo boxes so that the use can pop up and down empty</span></div>
<div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>&#160;<span class="comment">         * combo boxes.</span></div>
<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>&#160;    }</div>
<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>&#160; </div>
<div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>&#160;<span class="comment">     * Modifiers are considered only in EXTENDED sel list boxes.</span></div>
<div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == EXTENDEDSEL) {</div>
<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>&#160; </div>
<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>&#160;<span class="comment">         * If multiselection listbox, are any modifiers used ?</span></div>
<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a>(VK_SHIFT) &lt; 0)</div>
<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>&#160;            wModifiers = <a class="code" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>;</div>
<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a>(VK_CONTROL) &lt; 0)</div>
<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>&#160;            wModifiers += <a class="code" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>;</div>
<div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>&#160; </div>
<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>&#160;<span class="comment">         * Please Note that (SHIFTDOWN + CTLDOWN) == (SHCTLDOWN)</span></div>
<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>&#160;    }</div>
<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>&#160; </div>
<div class="line"><a name="l02062"></a><span class="lineno"> 2062</span>&#160;    <span class="keywordflow">if</span> (msg == <a class="code" href="a00182.html#a9aa45f03a653bac93ca3b416263a2368">LB_KEYDOWN</a>) {</div>
<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>&#160; </div>
<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>&#160;<span class="comment">         * This is a listbox &quot;go to specified item&quot; message which means we want</span></div>
<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>&#160;<span class="comment">         * to go to a particular item number (given by vKey) directly.  ie.  the</span></div>
<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>&#160;<span class="comment">         * user has typed a character and we want to go to the item which</span></div>
<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>&#160;<span class="comment">         * starts with that character.</span></div>
<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>&#160;        iNewISel = (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)vKey;</div>
<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>&#160;        <span class="keywordflow">goto</span> TrackKeyDown;</div>
<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>&#160;    }</div>
<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>&#160; </div>
<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>&#160;    cItemPageScroll = plb-&gt;<a class="code" href="a01921.html#af031416b0c1aad3b57cc15c469f41ecc">cItemFullMax</a>;</div>
<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>&#160; </div>
<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>&#160;    <span class="keywordflow">if</span> (cItemPageScroll &gt; 1)</div>
<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>&#160;        cItemPageScroll--;</div>
<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>&#160; </div>
<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ae4c077c45b12c7f8065672dbc5efa65f">fWantKeyboardInput</a>) {</div>
<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>&#160; </div>
<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>&#160;<span class="comment">         * Note: msg must not be LB_KEYDOWN here or we&#39;ll be in trouble...</span></div>
<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>&#160;        <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>&#160;        iNewISel = (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_VKEYTOITEM,</div>
<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>&#160;                MAKELONG(vKey, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>), (LONG)hwnd);</div>
<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>&#160;        ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>&#160; </div>
<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>&#160;        <span class="keywordflow">if</span> (iNewISel == -2) {</div>
<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>&#160; </div>
<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>&#160;<span class="comment">             * Don&#39;t move the selection...</span></div>
<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>&#160;        }</div>
<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>&#160;        <span class="keywordflow">if</span> (iNewISel != -1) {</div>
<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>&#160; </div>
<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>&#160;<span class="comment">             * Jump directly to the item provided by the app</span></div>
<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>&#160;            <span class="keywordflow">goto</span> TrackKeyDown;</div>
<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>&#160;        }</div>
<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>&#160; </div>
<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>&#160;<span class="comment">         * else do default processing of the character.</span></div>
<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>&#160;    }</div>
<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>&#160; </div>
<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>&#160;    <span class="keywordflow">switch</span> (vKey) {</div>
<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>&#160;    <span class="comment">// LATER IanJa: not language independent!!!</span></div>
<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>&#160;    <span class="comment">// We could use VkKeyScan() to find out which is the &#39;\&#39; key</span></div>
<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>&#160;    <span class="comment">// This is VK_OEM_5 &#39;\|&#39; for US English only.</span></div>
<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>&#160;    <span class="comment">// Germans, Italians etc. have to type CTRL+^ (etc) for this.</span></div>
<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>&#160;    <span class="comment">// This is documented as File Manager behaviour for 3.0, but apparently</span></div>
<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>&#160;    <span class="comment">// not for 3.1., although functionality remains. We should still fix it,</span></div>
<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>&#160;    <span class="comment">// although German (etc?) &#39;\&#39; is generated with AltGr (Ctrl-Alt) (???)</span></div>
<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>&#160;    <span class="keywordflow">case</span> VERKEY_BACKSLASH:  <span class="comment">/* &#39;\&#39; character for US English */</span></div>
<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>&#160; </div>
<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>&#160;<span class="comment">         * Check if this is CONTROL-\ ; If so Deselect all items</span></div>
<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>&#160;        <span class="keywordflow">if</span> ((wModifiers &amp; <a class="code" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>) &amp;&amp; (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> != SINGLESEL)) {</div>
<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>&#160;            <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, FALSE);</div>
<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>&#160; </div>
<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>&#160;<span class="comment">             * And select the current item</span></div>
<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>&#160;            <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, TRUE, HILITEANDSEL);</div>
<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, TRUE);</div>
<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>&#160;            <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>&#160;        }</div>
<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>&#160; </div>
<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>&#160;    <span class="keywordflow">case</span> VK_DIVIDE:     <span class="comment">/* NumPad &#39;/&#39; character on enhanced keyboard */</span></div>
<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>&#160;    <span class="comment">// LATER IanJa: not language independent!!!</span></div>
<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>&#160;    <span class="comment">// We could use VkKeyScan() to find out which is the &#39;/&#39; key</span></div>
<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>&#160;    <span class="comment">// This is VK_OEM_2 &#39;/?&#39; for US English only.</span></div>
<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>&#160;    <span class="comment">// Germans, Italians etc. have to type CTRL+# (etc) for this.</span></div>
<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>&#160;    <span class="keywordflow">case</span> VERKEY_SLASH:  <span class="comment">/* &#39;/&#39; character */</span></div>
<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>&#160; </div>
<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>&#160;<span class="comment">         * Check if this is CONTROL-/ ; If so select all items</span></div>
<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>&#160;        <span class="keywordflow">if</span> ((wModifiers &amp; <a class="code" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>) &amp;&amp; (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> != SINGLESEL)) {</div>
<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>&#160;            <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, -1, -1, TRUE);</div>
<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>&#160;            <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160;        }</div>
<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>&#160; </div>
<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160;    <span class="keywordflow">case</span> VK_F8:</div>
<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>&#160; </div>
<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>&#160;<span class="comment">         * The &quot;Add&quot; mode is possible only in Multiselection listboxes...  Get</span></div>
<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>&#160;<span class="comment">         * into it via SHIFT-F8...  (Yes, sometimes these UI people are sillier</span></div>
<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>&#160;<span class="comment">         * than your &quot;typical dumb user&quot;...)</span></div>
<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> != SINGLESEL &amp;&amp; wModifiers == <a class="code" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>) {</div>
<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160; </div>
<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>&#160;<span class="comment">             * We have to make the caret blink! Do something...</span></div>
<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>) {</div>
<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>&#160; </div>
<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>&#160;<span class="comment">                 * Switch off the Caret blinking</span></div>
<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>&#160;                <a class="code" href="a00362.html#a3d1e04978c2c8aa7594bb2ce1187a6ad">NtUserKillTimer</a>(hwnd, IDSYS_CARET);</div>
<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>&#160; </div>
<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>&#160;<span class="comment">                 * Make sure the caret does not vanish</span></div>
<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>&#160;                <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>&#160; </div>
<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>&#160;<span class="comment">                 * Create a timer to make the caret blink</span></div>
<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>&#160;                <a class="code" href="a00362.html#ad70225d60448a064c552efafd13fce64">NtUserSetTimer</a>(hwnd, IDSYS_CARET, <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">dtCaretBlink</a>,</div>
<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>&#160;                        <a class="code" href="a00182.html#ac810d042302264353670e5c8e682f729">xxxLBoxCaretBlinker</a>);</div>
<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>&#160;            }</div>
<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>&#160; </div>
<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>&#160;<span class="comment">             * Toggle the Add mode flag</span></div>
<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a> = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)!plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>;</div>
<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>&#160;        }</div>
<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>&#160;    <span class="keywordflow">case</span> VK_SPACE:  <span class="comment">/* Selection key is space */</span></div>
<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>&#160;        i = 0;</div>
<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>&#160;        fSelectKey = TRUE;</div>
<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>&#160; </div>
<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>&#160;    <span class="keywordflow">case</span> VK_PRIOR:</div>
<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed) {</div>
<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>&#160; </div>
<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>&#160;<span class="comment">             * Disable movement keys for TandyT.</span></div>
<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>&#160;        }</div>
<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>&#160; </div>
<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>&#160;            i = <a class="code" href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, FALSE) - plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>;</div>
<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>&#160;            i = -cItemPageScroll;</div>
<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>&#160;        }</div>
<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>&#160; </div>
<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>&#160;    <span class="keywordflow">case</span> VK_NEXT:</div>
<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed) {</div>
<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span>&#160; </div>
<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span>&#160;<span class="comment">             * Disable movement keys for TandyT.</span></div>
<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>&#160;        }</div>
<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span>&#160; </div>
<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>&#160;            i = <a class="code" href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, TRUE) - plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>;</div>
<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>&#160;            i = cItemPageScroll;</div>
<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>&#160;        }</div>
<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>&#160; </div>
<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>&#160;    <span class="keywordflow">case</span> VK_HOME:</div>
<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed) {</div>
<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>&#160; </div>
<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>&#160;<span class="comment">             * Disable movement keys for TandyT.</span></div>
<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>&#160;        }</div>
<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>&#160; </div>
<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>&#160;        i = (INT_MIN/2)+1;  <span class="comment">/* A very big negative number */</span></div>
<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>&#160; </div>
<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>&#160;    <span class="keywordflow">case</span> VK_END:</div>
<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed) {</div>
<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>&#160; </div>
<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>&#160;<span class="comment">             * Disable movement keys for TandyT.</span></div>
<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span>&#160;        }</div>
<div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>&#160; </div>
<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>&#160;        i = (INT_MAX/2)-1;  <span class="comment">/* A very big positive number */</span></div>
<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>&#160; </div>
<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>&#160;    <span class="keywordflow">case</span> VK_LEFT:</div>
<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a> == 0) {</div>
<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>&#160;                i = 0;</div>
<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span>&#160;                i = -plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>;</div>
<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>&#160;            }</div>
<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>&#160;        }</div>
<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>&#160; </div>
<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>&#160;        <span class="keywordflow">if</span> (hScrollBar) {</div>
<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>&#160;            <span class="keywordflow">goto</span> HandleHScrolling;</div>
<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>&#160; </div>
<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>&#160;<span class="comment">             * Fall through and handle this as if the up arrow was pressed.</span></div>
<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>&#160; </div>
<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>&#160;            vKey = VK_UP;</div>
<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>&#160;        }</div>
<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>&#160; </div>
<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>&#160;<span class="comment">         * Fall through</span></div>
<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>&#160; </div>
<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>&#160;    <span class="keywordflow">case</span> VK_UP:</div>
<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed)</div>
<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>&#160;            <span class="comment">// Disable movement keys for TandyT.</span></div>
<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>&#160; </div>
<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>&#160;        i = -1;</div>
<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>&#160; </div>
<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>&#160;    <span class="keywordflow">case</span> VK_RIGHT:</div>
<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a> == plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>) {</div>
<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>&#160;                i = 0;</div>
<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>&#160;                i = plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>;</div>
<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>&#160;            }</div>
<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>&#160;        }</div>
<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>&#160;        <span class="keywordflow">if</span> (hScrollBar) {</div>
<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>&#160;HandleHScrolling:</div>
<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>&#160;            <a class="code" href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a>(hwnd, WM_HSCROLL,</div>
<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>&#160;                    (vKey == VK_RIGHT ? SB_LINEDOWN : SB_LINEUP), 0L);</div>
<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>&#160; </div>
<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>&#160;<span class="comment">             * Fall through and handle this as if the down arrow was</span></div>
<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>&#160;<span class="comment">             * pressed.</span></div>
<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>&#160;            vKey = VK_DOWN;</div>
<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>&#160;        }</div>
<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>&#160; </div>
<div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>&#160;<span class="comment">         * Fall through</span></div>
<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>&#160; </div>
<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>&#160;    <span class="keywordflow">case</span> VK_DOWN:</div>
<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>&#160;        <span class="keywordflow">if</span> (fExtendedUIComboBoxClosed) {</div>
<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>&#160; </div>
<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>&#160;<span class="comment">             * If the combo box is closed, down arrow should open it.</span></div>
<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>&#160;            <span class="keywordflow">if</span> (!pcbox-&gt;<a class="code" href="a01889.html#a41f22a49cb001e7a271cd52129597f71">fLBoxVisible</a>) {</div>
<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>&#160; </div>
<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>&#160;<span class="comment">                 * If the listbox isn&#39;t visible, just show it</span></div>
<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pcbox-&gt;<a class="code" href="a01889.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>&#160;                <a class="code" href="a00053.html#a853b850891e533a1984c6d42ff5a9205">xxxCBShowListBoxWindow</a>(pcbox, TRUE);</div>
<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>&#160;                ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>&#160;            }</div>
<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>&#160;        }</div>
<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>&#160;        i = 1;</div>
<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>&#160; </div>
<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>&#160;    <span class="keywordflow">case</span> VK_ESCAPE:</div>
<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>&#160;    <span class="keywordflow">case</span> VK_RETURN:</div>
<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>&#160;        <span class="keywordflow">if</span> (!fDropDownComboBox || !pcbox-&gt;<a class="code" href="a01889.html#a41f22a49cb001e7a271cd52129597f71">fLBoxVisible</a>)</div>
<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>&#160; </div>
<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>&#160;        <span class="comment">// |  If this is a dropped listbox for a combobox and the ENTER  |</span></div>
<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>&#160;        <span class="comment">// |  key is pressed, close up the listbox, so FALLTHRU          |</span></div>
<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>&#160;        <span class="comment">// V                                                             V</span></div>
<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>&#160; </div>
<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>&#160;    <span class="keywordflow">case</span> VK_F4:</div>
<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>&#160;        <span class="keywordflow">if</span> (fDropDownComboBox &amp;&amp; !pcbox-&gt;<a class="code" href="a01889.html#abf7af4e542b547981f74b0cf6eb1ebef">fExtendedUI</a>) {</div>
<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>&#160; </div>
<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>&#160;<span class="comment">             * If we are a dropdown combo box/listbox we want to process</span></div>
<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>&#160;<span class="comment">             * this key.  BUT for TandtT, we don&#39;t do anything on VK_F4 if we</span></div>
<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>&#160;<span class="comment">             * are in extended ui mode.</span></div>
<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pcbox-&gt;<a class="code" href="a01889.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>&#160;            <span class="keywordflow">if</span> (!pcbox-&gt;<a class="code" href="a01889.html#a41f22a49cb001e7a271cd52129597f71">fLBoxVisible</a>) {</div>
<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>&#160; </div>
<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>&#160;<span class="comment">                 * If the listbox isn&#39;t visible, just show it</span></div>
<div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>&#160;                <a class="code" href="a00053.html#a853b850891e533a1984c6d42ff5a9205">xxxCBShowListBoxWindow</a>(pcbox, (vKey != VK_ESCAPE));</div>
<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>&#160; </div>
<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>&#160;<span class="comment">                 * Ok, the listbox is visible.  So hide the listbox window.</span></div>
<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>&#160;                <a class="code" href="a00053.html#aed83fabdb22766337e1e9ddf4c9db0f8">xxxCBHideListBoxWindow</a>(pcbox, TRUE, (vKey != VK_ESCAPE));</div>
<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>&#160;            }</div>
<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>&#160;        }</div>
<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>&#160; </div>
<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>&#160;<span class="comment">         * Fall through to the return</span></div>
<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>&#160; </div>
<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>&#160;    }</div>
<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>&#160; </div>
<div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>&#160;<span class="comment">     * Find out what the new selection should be</span></div>
<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>&#160;    iNewISel = <a class="code" href="a00182.html#a295ba52c0b994a2c9af393b67f6f840b">IncrementISel</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, i);</div>
<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>&#160; </div>
<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>&#160; </div>
<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL) {</div>
<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> == iNewISel) {</div>
<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>&#160; </div>
<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>&#160;<span class="comment">             * If we are single selection and the keystroke is moving us to an</span></div>
<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>&#160;<span class="comment">             * item which is already selected, we don&#39;t have to do anything...</span></div>
<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>&#160;        }</div>
<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>&#160; </div>
<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>&#160;        <span class="keywordflow">if</span> ((vKey == VK_UP || vKey == VK_DOWN) &amp;&amp;</div>
<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>&#160;                !<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, HILITEONLY)) {</div>
<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>&#160; </div>
<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>&#160;<span class="comment">             * If the caret is on an unselected item and the user just hits the</span></div>
<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>&#160;<span class="comment">             * up or down arrow key (ie. with no shift or ctrl modifications),</span></div>
<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>&#160;<span class="comment">             * then we will just select the item the cursor is at. This is</span></div>
<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>&#160;<span class="comment">             * needed for proper behavior in combo boxes but do we always want</span></div>
<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>&#160;<span class="comment">             * to run this code??? Note that this is only used in single</span></div>
<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>&#160;<span class="comment">             * selection list boxes since it doesn&#39;t make sense in the</span></div>
<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>&#160;<span class="comment">             * multiselection case. Note that an LB_KEYDOWN message must not be</span></div>
<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>&#160;<span class="comment">             * checked here because the vKey will be an item number not a</span></div>
<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>&#160;<span class="comment">             * VK_and we will goof. Thus, trackkeydown label is below this to</span></div>
<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>&#160;<span class="comment">             * fix a bug caused by it being above this...</span></div>
<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>&#160;            iNewISel = (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> == -1) ? 0 : plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>;</div>
<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>&#160;        }</div>
<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>&#160;    }</div>
<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>&#160; </div>
<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>&#160;TrackKeyDown:</div>
<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>&#160; </div>
<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>&#160;    <a class="code" href="a00182.html#a5eaf22c9a54b66cc76c7288ee61929b2">xxxSetISelBase</a>(plb, iNewISel);</div>
<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>&#160; </div>
<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>&#160; </div>
<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>&#160;    <span class="keywordflow">if</span> (wModifiers &amp; <a class="code" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>) {</div>
<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>&#160;        <span class="comment">// Check if iMouseDown is un-initialised</span></div>
<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> == -1)</div>
<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iNewISel;</div>
<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> == -1)</div>
<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = iNewISel;</div>
<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>&#160; </div>
<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>&#160;        <span class="comment">// Check if we are in ADD mode</span></div>
<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>) {</div>
<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>&#160;            <span class="comment">/* Preserve all the pre-existing selections except the</span></div>
<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>&#160;<span class="comment">             * ones connected with the last anchor point; If the last</span></div>
<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>&#160;<span class="comment">             * Preserve all the previous selections</span></div>
<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>&#160;            <span class="comment">/* Deselect only the selection connected with the last</span></div>
<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>&#160;<span class="comment">             * anchor point; If the last anchor point is associated</span></div>
<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>&#160;<span class="comment">             * with de-selection, then do not do it</span></div>
<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>&#160; </div>
<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>&#160;            <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>)</div>
<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>&#160;                plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>;</div>
<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>&#160; </div>
<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>&#160;            <span class="comment">/* We haven&#39;t done anything here because, LBBlockHilite()</span></div>
<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>&#160;<span class="comment">             * will take care of wiping out the selection between</span></div>
<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>&#160;<span class="comment">             * Anchor point and iLastMouseMove and select the block</span></div>
<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>&#160;<span class="comment">             * between anchor point and current cursor location</span></div>
<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>&#160;            <span class="comment">/* We are not in ADD mode */</span></div>
<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>&#160;            <span class="comment">/* Remove all selections except between the anchor point</span></div>
<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>&#160;<span class="comment">             * and last mouse move because it will be taken care of in</span></div>
<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>&#160;<span class="comment">             * LBBlockHilite</span></div>
<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>&#160;            <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>, FALSE);</div>
<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>&#160;        }</div>
<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>&#160; </div>
<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>&#160;        <span class="comment">/* LBBlockHilite takes care to deselect the block between</span></div>
<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>&#160;<span class="comment">         * the anchor point and iLastMouseMove and select the block</span></div>
<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>&#160;<span class="comment">         * between the anchor point and the current cursor location</span></div>
<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>&#160;<span class="comment">        */</span></div>
<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>&#160;        <span class="comment">/* Toggle all items to the same selection state as the item</span></div>
<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>&#160;<span class="comment">         * item at the anchor point) from the anchor point to the</span></div>
<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>&#160;<span class="comment">         * current cursor location.</span></div>
<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>&#160;<span class="comment">        */</span></div>
<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>&#160;        plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = <a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, SELONLY);</div>
<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>&#160;        <a class="code" href="a00182.html#ace547b9010d40429d3d1da2d6f03ffdf">xxxLBBlockHilite</a>(plb, iNewISel, TRUE);</div>
<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>&#160; </div>
<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = iNewISel;</div>
<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>&#160;        <span class="comment">/* Preserve the existing anchor point */</span></div>
<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>&#160;        <span class="comment">/* Check if this is in ADD mode */</span></div>
<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>&#160;        <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>) || (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == MULTIPLESEL)) {</div>
<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>&#160;            <span class="comment">/* Preserve all pre-exisiting selections */</span></div>
<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>&#160;            <span class="keywordflow">if</span> (fSelectKey) {</div>
<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>&#160;                <span class="comment">/* Toggle the selection state of the current item */</span></div>
<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>&#160;                plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = !<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, iNewISel, SELONLY);</div>
<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>&#160;                <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, iNewISel, plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, HILITEANDSEL);</div>
<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>&#160; </div>
<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>&#160;                <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, iNewISel, plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>);</div>
<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>&#160; </div>
<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>&#160;                <span class="comment">/* Set the anchor point at the current location */</span></div>
<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>&#160;                plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iNewISel;</div>
<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>&#160;            }</div>
<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>&#160;            <span class="comment">/* We are NOT in ADD mode */</span></div>
<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>&#160;            <span class="comment">/* Remove all existing selections except iNewISel, to</span></div>
<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>&#160;<span class="comment">             * avoid flickering.</span></div>
<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>&#160;            <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, iNewISel, iNewISel, FALSE);</div>
<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>&#160; </div>
<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>&#160;            <span class="comment">/* Select the current item */</span></div>
<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>&#160;            <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, iNewISel, TRUE, HILITEANDSEL);</div>
<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, iNewISel, TRUE);</div>
<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>&#160; </div>
<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>&#160;            <span class="comment">/* Set the anchor point at the current location */</span></div>
<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iNewISel;</div>
<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>&#160;        }</div>
<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>&#160;    }</div>
<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>&#160; </div>
<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>&#160;<span class="comment">     * Move the cursor to the new location</span></div>
<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>&#160;    <a class="code" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a>(plb, iNewISel, FALSE);</div>
<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>&#160;    <a class="code" href="a00179.html#a991eafcaf220c88b32c3bba40a8ed01c">xxxLBShowHideScrollBars</a>(plb);</div>
<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>&#160; </div>
<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>&#160; </div>
<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>&#160;<span class="comment">     * Should we notify our parent?</span></div>
<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a8801059e7c206fcf355f653186fc724f">fNotify</a>) {</div>
<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>&#160;        <span class="keywordflow">if</span> (fDropDownComboBox &amp;&amp; pcbox-&gt;<a class="code" href="a01889.html#a41f22a49cb001e7a271cd52129597f71">fLBoxVisible</a>) {</div>
<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>&#160; </div>
<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>&#160;<span class="comment">             * If we are in a drop down combo box/listbox and the listbox is</span></div>
<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>&#160;<span class="comment">             * visible, we need to set the fKeyboardSelInListBox bit so that the</span></div>
<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>&#160;<span class="comment">             * combo box code knows not to hide the listbox since the selchange</span></div>
<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>&#160;<span class="comment">             * message is caused by the user keyboarding through...</span></div>
<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>&#160;            pcbox-&gt;<a class="code" href="a01889.html#a56b3ae70b1ea16fc62fddcf1f8f3b7aa">fKeyboardSelInListBox</a> = TRUE;</div>
<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a2ce25ccdb5a932ee4e4a66b2a9311714">iLastSelection</a> = iNewISel;</div>
<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>&#160;        }</div>
<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>&#160;        <a class="code" href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a>(plb, LBN_SELCHANGE);</div>
<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>&#160;    }</div>
<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00464">tagCBox::CBoxStyle</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00872">tagLBIV::cItemFullMax</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00182_source.html#l00017">CTLDOWN</a>, <a class="el" href="a00365_source.html#l00986">tagSERVERINFO::dtCaretBlink</a>, <a class="el" href="a00257_source.html#l00907">tagLBIV::fAddSelMode</a>, <a class="el" href="a00257_source.html#l00482">tagCBox::fExtendedUI</a>, <a class="el" href="a00257_source.html#l00475">tagCBox::fKeyboardSelInListBox</a>, <a class="el" href="a00257_source.html#l00471">tagCBox::fLBoxVisible</a>, <a class="el" href="a00257_source.html#l00902">tagLBIV::fMouseDown</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00918">tagLBIV::fNewItemState</a>, <a class="el" href="a00257_source.html#l00901">tagLBIV::fNotify</a>, <a class="el" href="a00257_source.html#l00927">tagLBIV::fWantKeyboardInput</a>, <a class="el" href="a03611_source.html#l00589">GetKeyState()</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00257_source.html#l00958">tagLBIV::iLastMouseMove</a>, <a class="el" href="a00257_source.html#l00951">tagLBIV::iLastSelection</a>, <a class="el" href="a00257_source.html#l00954">tagLBIV::iMouseDown</a>, <a class="el" href="a00182_source.html#l01816">IncrementISel()</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00182_source.html#l00014">LB_KEYDOWN</a>, <a class="el" href="a00194_source.html#l00157">LBPage()</a>, <a class="el" href="a03614_source.html#l04150">NtUserKillTimer()</a>, <a class="el" href="a03614_source.html#l04749">NtUserSetTimer()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00967">tagLBIV::pcbox</a>, <a class="el" href="a00356_source.html#l00471">PostMessage()</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00182_source.html#l00016">SHIFTDOWN</a>, <a class="el" href="a00257_source.html#l00450">tagCBox::spwnd</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00053_source.html#l01497">xxxCBHideListBoxWindow()</a>, <a class="el" href="a00053_source.html#l01600">xxxCBShowListBoxWindow()</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00182_source.html#l03372">xxxLBBlockHilite()</a>, <a class="el" href="a00182_source.html#l01963">xxxLBoxCaretBlinker()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a>, <a class="el" href="a00182_source.html#l01140">xxxNotifyOwner()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a> , 以及 <a class="el" href="a00182_source.html#l01174">xxxSetISelBase()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a> , 以及 <a class="el" href="a00182_source.html#l02729">xxxLBoxCtlCharInput()</a>.</p>

</div>
</div>
<a id="af0aa852734cc1ffed376aab726138cbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0aa852734cc1ffed376aab726138cbc">&#9670;&nbsp;</a></span>xxxLBoxCtlScroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBoxCtlScroll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>yAmt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00509">509</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;{</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iTopNew;</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> cItemPageScroll;</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160; </div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160; </div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160; </div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;<span class="comment">         * Don&#39;t allow vertical scrolling on a multicolumn list box.  Needed</span></div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;<span class="comment">         * in case app sends WM_VSCROLL messages to the listbox.</span></div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    }</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    cItemPageScroll = plb-&gt;<a class="code" href="a01921.html#af031416b0c1aad3b57cc15c469f41ecc">cItemFullMax</a>;</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160; </div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    <span class="keywordflow">if</span> (cItemPageScroll &gt; 1)</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        cItemPageScroll--;</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160; </div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        iTopNew = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>;</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <span class="keywordflow">switch</span> (cmd) {</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keywordflow">case</span> SB_LINEUP:</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;            iTopNew--;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160; </div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        <span class="keywordflow">case</span> SB_LINEDOWN:</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;            iTopNew++;</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160; </div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;        <span class="keywordflow">case</span> SB_PAGEUP:</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;                iTopNew = <a class="code" href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a>(plb, plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>, FALSE);</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;                iTopNew -= cItemPageScroll;</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;            }</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160; </div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        <span class="keywordflow">case</span> SB_PAGEDOWN:</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;                iTopNew = <a class="code" href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a>(plb, plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>, TRUE);</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;                iTopNew += cItemPageScroll;</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;            }</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160; </div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;        <span class="keywordflow">case</span> SB_THUMBTRACK:</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;        <span class="keywordflow">case</span> SB_THUMBPOSITION: {</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160; </div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;<span class="comment">             * If the listbox contains more than 0xFFFF items</span></div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;<span class="comment">             * it means that the scrolbar can return a position</span></div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;<span class="comment">             * that cannot fit in a WORD (16 bits), so use</span></div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;<span class="comment">             * GetScrollInfo (which is slower) in this case.</span></div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> &lt; 0xFFFF) {</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;                iTopNew = yAmt;</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;                SCROLLINFO si;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160; </div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;                si.cbSize   = <span class="keyword">sizeof</span>(SCROLLINFO);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;                si.fMask    = SIF_TRACKPOS;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;                <a class="code" href="a00263.html#ad8538f97a4c88898ed54c5aa17c58d09">GetScrollInfo</a>( HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), SB_VERT, &amp;si);</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160; </div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;                iTopNew = si.nTrackPos;</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;            }</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;        }</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;        <span class="keywordflow">case</span> SB_TOP:</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;            iTopNew = 0;</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160; </div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keywordflow">case</span> SB_BOTTOM:</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            iTopNew = plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160; </div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <span class="keywordflow">case</span> SB_ENDSCROLL:</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;            <a class="code" href="a00179.html#a991eafcaf220c88b32c3bba40a8ed01c">xxxLBShowHideScrollBars</a>(plb);</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        }</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160; </div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        <a class="code" href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a>(plb, iTopNew);</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    }</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00872">tagLBIV::cItemFullMax</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00263_source.html#l00346">GetScrollInfo()</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00194_source.html#l00157">LBPage()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a> , 以及 <a class="el" href="a00182_source.html#l01841">xxxNewITop()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a3ef3568d65f91ee105e66263b0863a16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ef3568d65f91ee105e66263b0863a16">&#9670;&nbsp;</a></span>xxxLBoxDrawItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBoxDrawItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>itemAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>itemState</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>lprect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03285">3285</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>&#160;{</div>
<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>&#160;    DRAWITEMSTRUCT dis;</div>
<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>&#160; </div>
<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>&#160; </div>
<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>&#160;<span class="comment">     * Fill the DRAWITEMSTRUCT with the unchanging constants</span></div>
<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>&#160; </div>
<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>&#160;    dis.CtlType = ODT_LISTBOX;</div>
<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>&#160;    dis.CtlID = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">spmenu</a>;</div>
<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>&#160; </div>
<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>&#160;<span class="comment">     * Use -1 if an invalid item number is being used.  This is so that the app</span></div>
<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>&#160;<span class="comment">     * can detect if it should draw the caret (which indicates the lb has the</span></div>
<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>&#160;<span class="comment">     * focus) in an empty listbox</span></div>
<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>&#160;    dis.itemID = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)(item &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> ? item : -1);</div>
<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>&#160;    dis.itemAction = itemAction;</div>
<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>&#160;    dis.hwndItem = HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>&#160;    dis.hDC = plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>;</div>
<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>&#160;    dis.itemState = itemState |</div>
<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>&#160;            (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)(TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WFDISABLED) ? ODS_DISABLED : 0);</div>
<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>&#160; </div>
<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>&#160;<span class="comment">     * Set the app supplied data</span></div>
<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>&#160;    <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> || !plb-&gt;<a class="code" href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">fHasData</a>) {</div>
<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>&#160; </div>
<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>&#160;<span class="comment">         * If no strings or no items, just use 0 for data.  This is so that we</span></div>
<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>&#160;<span class="comment">         * can display a caret when there are no items in the listbox.</span></div>
<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>&#160;<span class="comment">         *</span></div>
<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>&#160;<span class="comment">         * Lazy-eval listboxes of course have no data to pass - only itemID.</span></div>
<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>&#160;        dis.itemData = 0L;</div>
<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>&#160;        dis.itemData = <a class="code" href="a00179.html#a6884cfb39f26b8e1f44ad90a3e96b3d1">LBGetItemData</a>(plb, item);</div>
<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>&#160;    }</div>
<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span>&#160; </div>
<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>&#160;    <a class="code" href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">CopyRect</a>(&amp;dis.rcItem, lprect);</div>
<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>&#160; </div>
<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>&#160;<span class="comment">     * Set the window origin to the horizontal scroll position.  This is so that</span></div>
<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>&#160;<span class="comment">     * text can always be drawn at 0,0 and the view region will only start at</span></div>
<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span>&#160;<span class="comment">     * the horizontal scroll offset. We pass this as wParam</span></div>
<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>&#160;<span class="comment">     * Note:  Only pass the itemID in wParam for 3.1 or newer apps.  We break</span></div>
<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>&#160;<span class="comment">     * ccMail otherwise.</span></div>
<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>&#160; </div>
<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span>&#160;    SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_DRAWITEM,</div>
<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>&#160;            TestWF(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, WFWIN31COMPAT) ? dis.CtlID : 0,</div>
<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>&#160;            (LONG)&amp;dis);</div>
<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>&#160; </div>
<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>&#160;    ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00935_source.html#l00391">CopyRect()</a>, <a class="el" href="a00257_source.html#l00912">tagLBIV::fHasData</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00179_source.html#l00168">LBGetItemData()</a>, <a class="el" href="a00365_source.html#l01413">tagWND::spmenu</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

</div>
</div>
<a id="aaf1c435b1497423ea849ad2c89955beb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf1c435b1497423ea849ad2c89955beb">&#9670;&nbsp;</a></span>xxxLBPaint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBPaint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HDC&#160;</td>
          <td class="paramname"><em>hdc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPRECT&#160;</td>
          <td class="paramname"><em>lprcBounds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00707">707</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;{</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;    RECT rect;</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    RECT    scratchRect;</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;    BOOL    fHilite;</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iLastItem;</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    HBRUSH hbrSave = NULL;</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;    HBRUSH hbrControl;</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    BOOL fCaretOn;</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    RECT    rcBounds;</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    HDC     hdcSave;</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160; </div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160; </div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;    <span class="keywordflow">if</span> (lprcBounds == NULL) {</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;        lprcBounds = &amp;rcBounds;</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;        <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, lprcBounds);</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;    }</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160; </div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;    hdcSave = plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>;</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a> = hdc;</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160; </div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    <span class="comment">// Initialize dc.</span></div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;    <a class="code" href="a00182.html#abbe4f724310a04746730870a9690aa0f">LBInitDC</a>(plb);</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160; </div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;    <span class="comment">// Turn caret off</span></div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;    <span class="keywordflow">if</span> (fCaretOn = plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>)</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160; </div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;    hbrSave = NULL;</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    hbrControl = <a class="code" href="a00182.html#aaa2bbef4dbb327ad82e5b1a6acbb713a">xxxLBGetBrush</a>(plb, &amp;hbrSave);</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160; </div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;    <span class="comment">// Get listbox&#39;s client</span></div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rect);</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160; </div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;    <span class="comment">// Adjust width of client rect for scrolled amount</span></div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;    <span class="comment">// fix for #140, t-arthb</span></div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    rect.right += plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>;</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160; </div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <span class="comment">// Get the index of the last item visible on the screen. This is also</span></div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <span class="comment">// valid for var height ownerdraw.</span></div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;    iLastItem = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb,TRUE);</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;    iLastItem = min(iLastItem, plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a> - 1);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160; </div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;    <span class="comment">// Fill in the background of the listbox if it&#39;s an empty listbox</span></div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;    <span class="comment">// or if we&#39;re doing a control print</span></div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;    <span class="keywordflow">if</span> (iLastItem == -1)</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;        <a class="code" href="a03212.html#a49402fd1bea89e835e5bc8bc96de744f">FillRect</a>(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, &amp;rect, hbrControl);</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160; </div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;    <span class="keywordflow">for</span> (i = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>; i &lt;= iLastItem; i++) {</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160; </div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;<span class="comment">         * Note that rect contains the clientrect from when we did the</span></div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;<span class="comment">         * _GetClientRect so the width is correct.  We just need to adjust</span></div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;<span class="comment">         * the top and bottom of the rectangle to the item of interest.</span></div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;        rect.bottom = rect.top + plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>;</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160; </div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;        <span class="keywordflow">if</span> ((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)i &lt; (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) {</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160; </div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;<span class="comment">             * If var height, get the rectangle for the item.</span></div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR || plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;                <a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, i, &amp;rect);</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;            }</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160; </div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a>(&amp;scratchRect, lprcBounds, &amp;rect)) {</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;                fHilite = !plb-&gt;<a class="code" href="a01921.html#ab77045ac872df15332c0f71fe22c688a">fNoSel</a> &amp;&amp; <a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, i, HILITEONLY);</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160; </div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;                <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a>) {</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160; </div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;<span class="comment">                     * Fill in the drawitem struct</span></div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;                    <a class="code" href="a00182.html#a3ef3568d65f91ee105e66263b0863a16">xxxLBoxDrawItem</a>(plb, i, ODA_DRAWENTIRE,</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;                            (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)(fHilite ? ODS_SELECTED : 0), &amp;rect);</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;                    <a class="code" href="a00182.html#af3adc13bc6ed492221a4f1350363fb42">xxxLBDrawLBItem</a>(plb, i, &amp;rect, fHilite, hbrControl);</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;                }</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;            }</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        }</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;        rect.top = rect.bottom;</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    }</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160; </div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;    <span class="keywordflow">if</span> (hbrSave != NULL)</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;        SelectObject(hdc, hbrSave);</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160; </div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    <span class="keywordflow">if</span> (fCaretOn)</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160; </div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;    <a class="code" href="a00182.html#af2965fa15cdad40e8176dfb625200256">LBTermDC</a>(plb);</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160; </div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;    plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a> = hdcSave;</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00885">tagLBIV::cyChar</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a03212_source.html#l00029">FillRect()</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00941">tagLBIV::fNoSel</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00935_source.html#l00184">IntersectRect()</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00182_source.html#l00100">LBInitDC()</a>, <a class="el" href="a00182_source.html#l00144">LBTermDC()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00257_source.html#l00964">tagLBIV::xOrigin</a>, <a class="el" href="a00182_source.html#l00319">xxxLBDrawLBItem()</a>, <a class="el" href="a00182_source.html#l00058">xxxLBGetBrush()</a>, <a class="el" href="a00182_source.html#l03285">xxxLBoxDrawItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="ad5024241be6ee5f985c8cafa65d584e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5024241be6ee5f985c8cafa65d584e8">&#9670;&nbsp;</a></span>xxxLBSelRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBSelRange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iEnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fnewstate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02959">2959</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>&#160;{</div>
<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> temp;</div>
<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>&#160;    RECT rc;</div>
<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>&#160; </div>
<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>&#160; </div>
<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>&#160;    <span class="keywordflow">if</span> (iStart &gt; iEnd) {</div>
<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>&#160;        temp = iEnd;</div>
<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>&#160;        iEnd = iStart;</div>
<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>&#160;        iStart = temp;</div>
<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>&#160;    }</div>
<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>&#160; </div>
<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>&#160;<span class="comment">     * We don&#39;t want to loop through items that don&#39;t exist.</span></div>
<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>&#160;    iEnd = min(plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>, iEnd);</div>
<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>&#160;    iStart = max(iStart, 0);</div>
<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>&#160;    <span class="keywordflow">if</span> (iStart &gt; iEnd)</div>
<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>&#160; </div>
<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>&#160; </div>
<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>&#160;<span class="comment">     * iEnd could be equal to MAXINT which is why we test temp and iEnd</span></div>
<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>&#160;<span class="comment">     * as DWORDs.</span></div>
<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>&#160;    <span class="keywordflow">for</span> (temp = iStart; temp &lt;= (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)iEnd; temp++) {</div>
<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>&#160; </div>
<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, temp, SELONLY) != fnewstate) {</div>
<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>&#160;            <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, temp, fnewstate, HILITEANDSEL);</div>
<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>&#160;            <a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, temp, &amp;rc);</div>
<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>&#160; </div>
<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>&#160;            <a class="code" href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a>(plb, (LPRECT)&amp;rc, FALSE);</div>
<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>&#160;        }</div>
<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>&#160; </div>
<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>&#160; </div>
<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>&#160;    }</div>
<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00182_source.html#l00036">xxxLBInvalidateRect()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="a739b28ba311ee4abe56b082e80cb63e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a739b28ba311ee4abe56b082e80cb63e4">&#9670;&nbsp;</a></span>xxxLBSetCaret()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBSetCaret </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fSetCaret</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l00385">385</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;{</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    RECT    rc;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    BOOL    fNewDC;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160; </div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab8ce3162badb545a4d4933d983a520e9">fCaret</a> &amp;&amp; ((BOOL) plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a> != !!fSetCaret)) {</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <span class="keywordflow">if</span> (IsLBoxVisible(plb)) {</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <span class="comment">/* Turn the caret (located at plb-&gt;iSelBase) on */</span></div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;            fNewDC = <a class="code" href="a00182.html#a4138a4b8a43e2394b7d1ad5008ef7b01">LBGetDC</a>(plb);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160; </div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;            <a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, &amp;rc);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;            <span class="keywordflow">if</span> (fNewDC) {</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;                SetBkColor(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, SYSRGB(WINDOW));</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;                SetTextColor(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, SYSRGB(WINDOWTEXT));</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            }</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160; </div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a>) {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;                <span class="comment">/* Fill in the drawitem struct */</span></div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> itemState = (fSetCaret) ? ODS_FOCUS : 0;</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160; </div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, HILITEONLY))</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;                    itemState |= ODS_SELECTED;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                <a class="code" href="a00182.html#a3ef3568d65f91ee105e66263b0863a16">xxxLBoxDrawItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, ODA_FOCUS, itemState, &amp;rc);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;            } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;                <a class="code" href="a00044.html#a6791113779859d3b55e5648477113adb">DrawFocusRect</a>(plb-&gt;<a class="code" href="a01921.html#acc6792141787aadc4d90abe018db1e02">hdc</a>, &amp;rc);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            <span class="keywordflow">if</span> (fNewDC)</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                <a class="code" href="a00182.html#aec8a47dce8f07292ff58031ce8d1c6e6">LBReleaseDC</a>(plb);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        }</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a> = !!fSetCaret;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    }</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00044_source.html#l00026">DrawFocusRect()</a>, <a class="el" href="a00257_source.html#l00904">tagLBIV::fCaret</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00257_source.html#l00968">tagLBIV::hdc</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00182_source.html#l00124">LBGetDC()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00182_source.html#l00158">LBReleaseDC()</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a> , 以及 <a class="el" href="a00182_source.html#l03285">xxxLBoxDrawItem()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00182_source.html#l03151">xxxCaretDestroy()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00182_source.html#l01963">xxxLBoxCaretBlinker()</a>, <a class="el" href="a00182_source.html#l00611">xxxLBoxCtlHScroll()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a>, <a class="el" href="a00182_source.html#l00509">xxxLBoxCtlScroll()</a>, <a class="el" href="a00182_source.html#l00707">xxxLBPaint()</a>, <a class="el" href="a00182_source.html#l03009">xxxLBSetCurSel()</a>, <a class="el" href="a00182_source.html#l02925">xxxLBSetRedraw()</a>, <a class="el" href="a00182_source.html#l03195">xxxLBSetSel()</a>, <a class="el" href="a00182_source.html#l01841">xxxNewITop()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a>, <a class="el" href="a00182_source.html#l01174">xxxSetISelBase()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a9d6ca7e87b67870f724eaede20fcb9ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d6ca7e87b67870f724eaede20fcb9ef">&#9670;&nbsp;</a></span>xxxLBSetCurSel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xxxLBSetCurSel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iSel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03009">3009</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>&#160;{</div>
<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>&#160; </div>
<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>&#160;    <span class="keywordflow">if</span> (!(plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> || iSel &lt; -1 || iSel &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)) {</div>
<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> != -1) {</div>
<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>&#160; </div>
<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>&#160;<span class="comment">             * This prevents scrolling when iSel == -1</span></div>
<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>&#160;            <span class="keywordflow">if</span> (iSel != -1)</div>
<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>&#160;                <a class="code" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a>(plb, iSel, FALSE);</div>
<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>&#160; </div>
<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>&#160;<span class="comment">             * Turn off old selection</span></div>
<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>, FALSE);</div>
<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>&#160;        }</div>
<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>&#160; </div>
<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>&#160;        <span class="keywordflow">if</span> (iSel != -1) {</div>
<div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>&#160;            <a class="code" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a>(plb, iSel, FALSE);</div>
<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>&#160;            plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSel;</div>
<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>&#160; </div>
<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>&#160;<span class="comment">             * Highlight new selection</span></div>
<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>, TRUE);</div>
<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = -1;</div>
<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)</div>
<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>&#160;                plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> = min(plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>, plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>-1);</div>
<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>&#160;                plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> = 0;</div>
<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>&#160;        }</div>
<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>&#160; </div>
<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span>&#160;        <span class="keywordflow">return</span> plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>;</div>
<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>&#160;    }</div>
<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>&#160; </div>
<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>&#160;    <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="a3c35b7b60a115cd322fc1fb90a09b964"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c35b7b60a115cd322fc1fb90a09b964">&#9670;&nbsp;</a></span>xxxLBSetRedraw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxLBSetRedraw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fRedraw</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l02925">2925</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>&#160;{</div>
<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>&#160; </div>
<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>&#160;    <span class="keywordflow">if</span> (fRedraw)</div>
<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>&#160;        fRedraw = TRUE;</div>
<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>&#160; </div>
<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abae0c031d21e87807959f436a83ce8a4">fRedraw</a> != (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)fRedraw) {</div>
<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>&#160;        plb-&gt;<a class="code" href="a01921.html#abae0c031d21e87807959f436a83ce8a4">fRedraw</a> = !!fRedraw;</div>
<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>&#160; </div>
<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>&#160;        <span class="keywordflow">if</span> (fRedraw) {</div>
<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>&#160;            <a class="code" href="a00179.html#a991eafcaf220c88b32c3bba40a8ed01c">xxxLBShowHideScrollBars</a>(plb);</div>
<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>&#160; </div>
<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a80b0656135ca243454b281299f0cebe2">fDeferUpdate</a>) {</div>
<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>&#160;                plb-&gt;<a class="code" href="a01921.html#a80b0656135ca243454b281299f0cebe2">fDeferUpdate</a> = FALSE;</div>
<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>&#160;                <a class="code" href="a03611.html#a4dfda995bf0f082361527377e6e63833">RedrawWindow</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), NULL, NULL,</div>
<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>&#160;                        RDW_INVALIDATE | RDW_ERASE |</div>
<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160;                        RDW_FRAME | RDW_ALLCHILDREN);</div>
<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160;            }</div>
<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>&#160;        }</div>
<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160;    }</div>
<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00894">tagLBIV::fDeferUpdate</a>, <a class="el" href="a00257_source.html#l00893">tagLBIV::fRedraw</a>, <a class="el" href="a03611_source.html#l01037">RedrawWindow()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a> , 以及 <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a> , 以及 <a class="el" href="a00179_source.html#l00996">xxxLBSetCount()</a>.</p>

</div>
</div>
<a id="a7f12775a07555c86d74ca182ac573f20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f12775a07555c86d74ca182ac573f20">&#9670;&nbsp;</a></span>xxxLBSetSel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG xxxLBSetSel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iSel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l03195">3195</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>&#160;{</div>
<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> sItem;</div>
<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span>&#160;    RECT rc;</div>
<div class="line"><a name="l03202"></a><span class="lineno"> 3202</span>&#160; </div>
<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>&#160; </div>
<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>&#160;<span class="comment">    * Bug 17656. WinZip&#39;s accelerator key for &#39;DeSelect All&#39; sends a LB_SETSEL</span></div>
<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>&#160;<span class="comment">    * message with lparam = 0x0000ffff instead of 0xffffffff(-1). If iSel</span></div>
<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>&#160;<span class="comment">    * is equal to  0x0000ffff and there are less than 0xffff elements in the</span></div>
<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>&#160;<span class="comment">    * list we set iSel equal to 0xffffffff.</span></div>
<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>&#160;<span class="comment">    */</span></div>
<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>&#160;    <span class="keywordflow">if</span> ((iSel == (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)0xffff) &amp;&amp; (iSel &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)) {</div>
<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>&#160;        iSel = -1;</div>
<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;Sign extending iSel=0xffff to 0xffffffff&quot;</span>);</div>
<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>&#160;    }</div>
<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>&#160; </div>
<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>&#160; </div>
<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>&#160;    <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL) || (iSel != -1 &amp;&amp; iSel &gt;= plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>)) {</div>
<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_INVALID_PARAMETER, <a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>,</div>
<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>&#160;                <span class="stringliteral">&quot;xxxLBSetSel:Invalid iSel or SINGLESEL listbox&quot;</span>);</div>
<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>&#160;        <span class="keywordflow">return</span> LB_ERR;</div>
<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>&#160;    }</div>
<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>&#160; </div>
<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>&#160; </div>
<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>&#160;    <span class="keywordflow">if</span> (iSel == -1<span class="comment">/*(INT)0xffff*/</span>) {</div>
<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>&#160; </div>
<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>&#160;<span class="comment">         * Set/clear selection from all items if -1</span></div>
<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>&#160;        <span class="keywordflow">for</span> (sItem = 0; sItem &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>; sItem++) {</div>
<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, sItem, SELONLY) != fSelect) {</div>
<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>&#160;                <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, sItem, fSelect, HILITEANDSEL);</div>
<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, sItem, &amp;rc)) {</div>
<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>&#160;                    <a class="code" href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a>(plb, &amp;rc, FALSE);</div>
<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>&#160;                }</div>
<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>&#160;            }</div>
<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>&#160;        }</div>
<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>&#160;        <span class="keywordflow">if</span> (fSelect) {</div>
<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>&#160; </div>
<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>&#160;<span class="comment">             * Check if the item if fully hidden and scroll it into view if it</span></div>
<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>&#160;<span class="comment">             * is.  Note that we don&#39;t want to scroll partially visible items</span></div>
<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>&#160;<span class="comment">             * into full view because this breaks the shell...</span></div>
<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>&#160;            <a class="code" href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a>(plb, iSel, TRUE);</div>
<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>&#160;            plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSel;</div>
<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>&#160; </div>
<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = iSel;</div>
<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>&#160;        }</div>
<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>&#160;        <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, iSel, fSelect, HILITEANDSEL);</div>
<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>&#160; </div>
<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>&#160;<span class="comment">         * Note that we set the caret on bit directly so that we avoid flicker</span></div>
<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>&#160;<span class="comment">         * when drawing this item.  ie.  We turn on the caret, redraw the item and</span></div>
<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>&#160;<span class="comment">         * turn it back on again.</span></div>
<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>&#160;        <span class="keywordflow">if</span> (!fSelect &amp;&amp; plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> != iSel) {</div>
<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab8ce3162badb545a4d4933d983a520e9">fCaret</a>) {</div>
<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a> = TRUE;</div>
<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>&#160;        }</div>
<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>&#160; </div>
<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a>(plb, iSel, &amp;rc)) {</div>
<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>&#160;            <a class="code" href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a>(plb, &amp;rc, FALSE);</div>
<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>&#160;        }</div>
<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>&#160;    }</div>
<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>&#160; </div>
<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00904">tagLBIV::fCaret</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00257_source.html#l00958">tagLBIV::iLastMouseMove</a>, <a class="el" href="a00257_source.html#l00954">tagLBIV::iMouseDown</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00182_source.html#l00177">LBGetItemRect()</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00182_source.html#l00036">xxxLBInvalidateRect()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>.</p>

</div>
</div>
<a id="ae865bdbf8fc8b8c3982b92b6ecec38bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae865bdbf8fc8b8c3982b92b6ecec38bd">&#9670;&nbsp;</a></span>xxxNewITop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxNewITop </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iTopNew</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01841">1841</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;{</div>
<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160;    <span class="keywordtype">int</span>     iTopOld;</div>
<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;    BOOL fCaretOn;</div>
<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;    BOOL fMulti = plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>;</div>
<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160; </div>
<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160; </div>
<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;    <span class="comment">// Always try to turn off caret whether or not redraw is on</span></div>
<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;    <span class="keywordflow">if</span> (fCaretOn = plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>)</div>
<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160; </div>
<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;    iTopOld = (fMulti) ? (plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> / plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>) : plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a>;</div>
<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;    plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> = iTopNew;</div>
<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;    iTopNew = <a class="code" href="a00179.html#ab88cd7027b6acd69d6c39d4eac56cc53">xxxSetLBScrollParms</a>(plb, (fMulti) ? SB_HORZ : SB_VERT);</div>
<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;    plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> = (fMulti) ? (iTopNew * plb-&gt;<a class="code" href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">itemsPerColumn</a>) : iTopNew;</div>
<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160; </div>
<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;    <span class="keywordflow">if</span> (!IsLBoxVisible(plb)) {</div>
<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160;    }</div>
<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160; </div>
<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160;    <span class="keywordflow">if</span> (iTopNew != iTopOld) {</div>
<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160;        <span class="keywordtype">int</span>     xAmt, yAmt;</div>
<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>&#160;        RECT    rc;</div>
<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>&#160; </div>
<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>&#160;        <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rc);</div>
<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>&#160; </div>
<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160;        <span class="keywordflow">if</span> (fMulti) {</div>
<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160;            yAmt = 0;</div>
<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160;            <span class="keywordflow">if</span> (abs(iTopNew - iTopOld) &gt; plb-&gt;<a class="code" href="a01921.html#a8abffa689a2601dffeb2ec73f0d35c8b">numberOfColumns</a>)</div>
<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>&#160;                <span class="comment">// Handle scrolling a large number of columns properly so that</span></div>
<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>&#160;                <span class="comment">// we don&#39;t overflow the size of a rect.</span></div>
<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>&#160;                xAmt = 32000;</div>
<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>&#160;                xAmt = (iTopOld - iTopNew) * plb-&gt;<a class="code" href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">cxColumn</a>;</div>
<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>&#160;            xAmt = 0;</div>
<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a10cabd3870f697deba5823036713c506">OwnerDraw</a> == OWNERDRAWVAR) {</div>
<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>&#160;                <span class="comment">// Have to fake iTopOld for OWNERDRAWVAR listboxes so that</span></div>
<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>&#160;                <span class="comment">// the scrolling amount calculations work properly.</span></div>
<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>&#160;                <span class="comment">//</span></div>
<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>&#160;                plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> = iTopOld;</div>
<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>&#160;                yAmt = <a class="code" href="a00194.html#ade731f94bec18cb62374143bd2539924">LBCalcVarITopScrollAmt</a>(plb, iTopOld, iTopNew);</div>
<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>&#160;                plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> = iTopNew;</div>
<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (abs(iTopNew - iTopOld) &gt; plb-&gt;<a class="code" href="a01921.html#af031416b0c1aad3b57cc15c469f41ecc">cItemFullMax</a>)</div>
<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>&#160;                yAmt = 32000;</div>
<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>&#160;                yAmt = (iTopOld - iTopNew) * plb-&gt;<a class="code" href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">cyChar</a>;</div>
<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>&#160;        }</div>
<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>&#160; </div>
<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>&#160;        <a class="code" href="a00362.html#ab79fb1908c7da8bfc42396a59d16eb20">NtUserScrollWindowEx</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>), xAmt, yAmt, NULL, &amp;rc, NULL, NULL,</div>
<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>&#160;            SW_SCROLLWINDOW | SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);</div>
<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160; </div>
<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160;        <a class="code" href="a00026.html#a8bc3d6c71e90bc4c6472c0647af92301">UpdateWindow</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>));</div>
<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>&#160;    }</div>
<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>&#160; </div>
<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>&#160;    <span class="comment">// Note that although we turn off the caret regardless of redraw, we</span></div>
<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>&#160;    <span class="comment">// only turn it on if redraw is true. Slimy thing to fixup many</span></div>
<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>&#160;    <span class="comment">// caret related bugs...</span></div>
<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>&#160;    <span class="keywordflow">if</span> (fCaretOn)</div>
<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>&#160;        <span class="comment">// Turn the caret back on only if we turned it off. This avoids</span></div>
<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>&#160;        <span class="comment">// annoying caret flicker.</span></div>
<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00872">tagLBIV::cItemFullMax</a>, <a class="el" href="a00257_source.html#l00886">tagLBIV::cxColumn</a>, <a class="el" href="a00257_source.html#l00885">tagLBIV::cyChar</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00887">tagLBIV::itemsPerColumn</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00194_source.html#l00198">LBCalcVarITopScrollAmt()</a>, <a class="el" href="a00362.html#ab79fb1908c7da8bfc42396a59d16eb20">NtUserScrollWindowEx()</a>, <a class="el" href="a00257_source.html#l00888">tagLBIV::numberOfColumns</a>, <a class="el" href="a00257_source.html#l00892">tagLBIV::OwnerDraw</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00026_source.html#l03049">UpdateWindow()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a> , 以及 <a class="el" href="a00179_source.html#l00026">xxxSetLBScrollParms()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00188_source.html#l00025">LBCalcItemRowsAndColumns()</a>, <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l01916">xxxInsureVisible()</a>, <a class="el" href="a00188_source.html#l00071">xxxLBoxCtlHScrollMultiColumn()</a>, <a class="el" href="a00182_source.html#l00509">xxxLBoxCtlScroll()</a>, <a class="el" href="a00179_source.html#l00117">xxxLBShowHideScrollBars()</a> , 以及 <a class="el" href="a00191_source.html#l00512">xxxLBSize()</a>.</p>

</div>
</div>
<a id="a3e0630367eb018bf40e9bbc5924249ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e0630367eb018bf40e9bbc5924249ba">&#9670;&nbsp;</a></span>xxxNotifyOwner()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxNotifyOwner </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sEvt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01140">1140</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;{</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160; </div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160; </div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;<span class="preprocessor">#ifdef NEVER</span></div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;    <span class="keywordflow">if</span> (sEvt &gt;= LBN_SETFOCUS &amp;&amp; plb-&gt;fWin2App) {</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160; </div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;<span class="comment">         * Don&#39;t send new 3.0 notification codes to the 2.x apps.  Excel is a</span></div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;<span class="comment">         * hose bag and can&#39;t take these because they only expect LBN_SELCHANGE</span></div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;<span class="comment">         * and LBN_DOUBLECLK msgs in their Fonts dialog box and they die if they</span></div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;<span class="comment">         * get other LBN_msgs.</span></div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;    }</div>
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160; </div>
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;    SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_COMMAND,</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;            MAKELONG((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">spmenu</a>, sEvt), (LONG)HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>));</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;    ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00365_source.html#l01413">tagWND::spmenu</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a>, <a class="el" href="a00185_source.html#l00863">xxxLbDir()</a>, <a class="el" href="a00185_source.html#l01060">xxxLbInsertFile()</a>, <a class="el" href="a00179_source.html#l00325">xxxLBInsertItem()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a> , 以及 <a class="el" href="a00179_source.html#l00996">xxxLBSetCount()</a>.</p>

</div>
</div>
<a id="aeba92583929559a636e7578de8af1e6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeba92583929559a636e7578de8af1e6e">&#9670;&nbsp;</a></span>xxxResetWorld()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxResetWorld </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>iEnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>fSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01077">1077</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;{</div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> i;</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iLastInWindow;</div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;    BOOL fCaretOn;</div>
<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160; </div>
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160; </div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;<span class="comment">     * If iStart and iEnd are not in correct order we swap them</span></div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160; </div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;    <span class="keywordflow">if</span> (iStart &gt; iEnd) {</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;        i = iStart;</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;        iStart = iEnd;</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;        iEnd = i;</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;    }</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160; </div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;    <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == SINGLESEL) {</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> != -1 &amp;&amp; ((plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> &lt; iStart) || (plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> &gt; iEnd))) {</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>, fSelect);</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = -1;</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;        }</div>
<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;    }</div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160; </div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;    iLastInWindow = plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> + <a class="code" href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a>(plb, TRUE);</div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160; </div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;    <span class="keywordflow">if</span> (fCaretOn = plb-&gt;<a class="code" href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">fCaretOn</a>)</div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160; </div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>; i++) {</div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;        <span class="keywordflow">if</span> (i == iStart)</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;            <span class="comment">// skip range to be preserved</span></div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;            i = iEnd;</div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;        <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;            <span class="keywordflow">if</span> ((plb-&gt;<a class="code" href="a01921.html#ab84d959c8cc5598602cd735047f91f06">iTop</a> &lt;= i) &amp;&amp; (i &lt;= iLastInWindow) &amp;&amp;</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;                (fSelect != <a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, i, HILITEONLY)))</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;                <span class="comment">// Only invert the item if it is visible and present Selection</span></div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;                <span class="comment">// state is different from what is required.</span></div>
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>&#160;                <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, i, fSelect);</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160; </div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;            <span class="comment">// Set all items outside of preserved range to unselected</span></div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;            <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, i, fSelect, HILITEANDSEL);</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;        }</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;    }</div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160; </div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;    <span class="keywordflow">if</span> (fCaretOn)</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;        <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160; </div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00182_source.html#l00474">CItemInWindow()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00257_source.html#l00906">tagLBIV::fCaretOn</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00257_source.html#l00869">tagLBIV::iTop</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="a5eaf22c9a54b66cc76c7288ee61929b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eaf22c9a54b66cc76c7288ee61929b2">&#9670;&nbsp;</a></span>xxxSetISelBase()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxSetISelBase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>sItem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01174">1174</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;{</div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160; </div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;    plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> = sItem;</div>
<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;    <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a> , 以及 <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a>, <a class="el" href="a00182_source.html#l02000">xxxLBoxCtlKeyInput()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
<a id="acb113b5e175bc8c811ec12bcc816f3bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb113b5e175bc8c811ec12bcc816f3bb">&#9670;&nbsp;</a></span>xxxTrackMouse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxTrackMouse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a1ef0da836aee54f9d545b232ae483b05">PLBIV</a>&#160;</td>
          <td class="paramname"><em>plb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wMsg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">POINT&#160;</td>
          <td class="paramname"><em>pt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00182_source.html">lboxctl2.c</a> 第 <a class="el" href="a00182_source.html#l01192">1192</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;{</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSelFromPt;</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> iSelTemp;</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;    BOOL mousetemp;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;    BOOL fMouseInRect;</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;    RECT rcClient;</div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wModifiers = 0;</div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;    BOOL fSelected;</div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;    <a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> trackPtRetn;</div>
<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;    HWND hwnd = HWq(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndEdit;</div>
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndParent;</div>
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160; </div>
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>);</div>
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160; </div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;<span class="comment">     * Optimization:  do nothing if mouse not captured</span></div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;    <span class="keywordflow">if</span> ((wMsg != WM_LBUTTONDOWN) &amp;&amp; (wMsg != WM_LBUTTONDBLCLK)) {</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;        <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a>)</div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;    }</div>
<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160; </div>
<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;    mousetemp = <a class="code" href="a00182.html#a3be527c73d19ec7f5239d37f678d1f20">ISelFromPt</a>(plb, pt, &amp;iSelFromPt);</div>
<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160; </div>
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;<span class="comment">     * If we allow the user to cancel his selection then fMouseInRect is true if</span></div>
<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;<span class="comment">     * the mouse is in the listbox client area otherwise it is false.  If we</span></div>
<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;<span class="comment">     * don&#39;t allow the user to cancel his selection, then fMouseInRect will</span></div>
<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;<span class="comment">     * always be true.  This allows us to implement cancelable selection</span></div>
<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;<span class="comment">     * listboxes ie.  The selection reverts to the origional one if the user</span></div>
<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;<span class="comment">     * releases the mouse outside of the listbox.</span></div>
<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;    fMouseInRect = !mousetemp || !plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>;</div>
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160; </div>
<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;    <a class="code" href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;rcClient);</div>
<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160; </div>
<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;    <span class="keywordflow">switch</span> (wMsg) {</div>
<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;    <span class="keywordflow">case</span> WM_LBUTTONDBLCLK:</div>
<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;    <span class="keywordflow">case</span> WM_LBUTTONDOWN:</div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;<span class="comment">         * We want to divert mouse clicks.  If the user clicks outside</span></div>
<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;<span class="comment">         * of a dropped down listbox, we want to popup it up, using</span></div>
<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;<span class="comment">         * the current selection.</span></div>
<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a>) {</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;<span class="comment">             * If plb-&gt;pcbox is NULL, this is a listbox that</span></div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;<span class="comment">             * received a WM_LBUTTONDOWN again w/o receiving</span></div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;<span class="comment">             * a WM_LBUTTONUP for the previous WM_LBUTTONDOWN</span></div>
<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;<span class="comment">             * bug</span></div>
<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a> &amp;&amp; mousetemp) {</div>
<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;                <a class="code" href="a00365.html#a9adcce0ae7f3f1108645323a0d2be59d">_ClientToScreen</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;pt);</div>
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160; </div>
<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;                <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>, pt)) {</div>
<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;<span class="comment">                     * Cancel selection if clicked outside of combo;</span></div>
<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;<span class="comment">                     * Accept if clicked on combo button or item.</span></div>
<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;                    <a class="code" href="a00053.html#aed83fabdb22766337e1e9ddf4c9db0f8">xxxCBHideListBoxWindow</a>(plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>, TRUE, FALSE);</div>
<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;                } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>-&gt;<a class="code" href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">rcClient</a>, pt)) {</div>
<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;<span class="comment">                     * Let it pass through.  Save, restore capture in</span></div>
<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;<span class="comment">                     * case user is clicking on scrollbar.</span></div>
<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;                    plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a> = FALSE;</div>
<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;                    NtUserReleaseCapture();</div>
<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160; </div>
<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160;                    <a class="code" href="a00041.html#a6bdc5311bb7640aba29656dd7bb4e71a">SendMessageWorker</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WM_NCLBUTTONDOWN,</div>
<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;                        <a class="code" href="a00365.html#a202c4352bfc572d57289c5ba006e2d9f">FindNCHit</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, POINTTOPOINTS(pt)),</div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;                        MAKELONG(pt.x, pt.y), FALSE);</div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160; </div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;                    <a class="code" href="a00362.html#ab16f28e9f59d44f34fed22d8412bf7f9">NtUserSetCapture</a>(hwnd);</div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;                    plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a> = TRUE;</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;                }</div>
<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160; </div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;            }</div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160; </div>
<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a> = FALSE;</div>
<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160;            NtUserReleaseCapture();</div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160;        }</div>
<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160; </div>
<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>) {</div>
<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160; </div>
<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;<span class="comment">             * If this listbox is in a combo box, set the focus to the combo</span></div>
<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;<span class="comment">             * box window so that the edit control/static text is also</span></div>
<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;<span class="comment">             * activated</span></div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>-&gt;<a class="code" href="a01889.html#a2d22bfa9dcbd27c904993db8e1a916db">spwndEdit</a>, &amp;tlpwndEdit);</div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;            <a class="code" href="a00362.html#a3aa84979aeb1f89caa4217dc0f88b104">NtUserSetFocus</a>(HWq(plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>-&gt;<a class="code" href="a01889.html#a2d22bfa9dcbd27c904993db8e1a916db">spwndEdit</a>));</div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;            ThreadUnlock(&amp;tlpwndEdit);</div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160; </div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;<span class="comment">             * Get the focus if the listbox is clicked in and we don&#39;t</span></div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;<span class="comment">             * already have the focus.  If we don&#39;t have the focus after</span></div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;<span class="comment">             * this, run away...</span></div>
<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;            <a class="code" href="a00362.html#a3aa84979aeb1f89caa4217dc0f88b104">NtUserSetFocus</a>(hwnd);</div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;            <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#ab8ce3162badb545a4d4933d983a520e9">fCaret</a>)</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;                <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;        }</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160; </div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a>) {</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160; </div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;<span class="comment">             * If it is in &quot;Add&quot; mode, quit it using shift f8 key...</span></div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;<span class="comment">             * However, since we can&#39;t send shift key state, we have to turn</span></div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;<span class="comment">             * this off directly...</span></div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160; </div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;<span class="comment">             *SendMessage(HW(plb-&gt;spwnd),WM_KEYDOWN, (UINT)VK_F8, 0L);</span></div>
<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160; </div>
<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;<span class="comment">             * Switch off the Caret blinking</span></div>
<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;            <a class="code" href="a00362.html#a3d1e04978c2c8aa7594bb2ce1187a6ad">NtUserKillTimer</a>(hwnd, IDSYS_CARET);</div>
<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160; </div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;<span class="comment">             * Make sure the caret does not vanish</span></div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;            <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, TRUE);</div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad47b23688fef06f381138397a3daf2ee">fAddSelMode</a> = FALSE;</div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;        }</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160; </div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;        <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#aa846f9b41c896f518fb18a97307280f2">cMac</a>) {</div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160; </div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;<span class="comment">             * Don&#39;t even bother handling the mouse if no items in the</span></div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;<span class="comment">             * listbox since the code below assumes &gt;0 items in the</span></div>
<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;<span class="comment">             * listbox.  We will just get the focus (the statement above) if</span></div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;<span class="comment">             * we don&#39;t already have it.</span></div>
<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160;        }</div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160; </div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;        <span class="keywordflow">if</span> (mousetemp) {</div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160; </div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;<span class="comment">             * Mouse down occurred in a empty spot.  Just ignore it.</span></div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;        }</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160; </div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">fDoubleClick</a> = (wMsg == WM_LBUTTONDBLCLK);</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160; </div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;        <span class="keywordflow">if</span> (!plb-&gt;<a class="code" href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">fDoubleClick</a>) {</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160; </div>
<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160;<span class="comment">             * This hack put in for the shell.  Tell the shell where in the</span></div>
<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;<span class="comment">             * listbox the user clicked and at what item number.  The shell</span></div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;<span class="comment">             * can return 0 to continue normal mouse tracking or TRUE to</span></div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;<span class="comment">             * abort mouse tracking.</span></div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;            trackPtRetn = (<a class="code" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>)SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_LBTRACKPOINT,</div>
<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;                    (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)iSelFromPt, MAKELONG(pt.x+plb-&gt;<a class="code" href="a01921.html#aaef455959b7907cbaff286e61c5e029b">xOrigin</a>, pt.y));</div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;            ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;            <span class="keywordflow">if</span> (trackPtRetn) {</div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;                <span class="keywordflow">if</span> (trackPtRetn == 2) {</div>
<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160; </div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;<span class="comment">                     * Ignore double clicks</span></div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;                    <a class="code" href="a00362.html#ab64eb963b74811908a5b9bc99d77b8ac">NtUserCallNoParam</a>(<a class="code" href="a00335.html#a062fd6afd0c6612b89846c19a71d01fa">SFI__RESETDBLCLK</a>);</div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;                }</div>
<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;                <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;            }</div>
<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;        }</div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160; </div>
<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a0c0967f12b88efa3c64b143a35789575">pcbox</a>) {</div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160; </div>
<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;<span class="comment">             * Save the last selection if this is a combo box.  So that it</span></div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;<span class="comment">             * can be restored if user decides to cancel the selection by up</span></div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;<span class="comment">             * clicking outside the listbox.</span></div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a2ce25ccdb5a932ee4e4a66b2a9311714">iLastSelection</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a>;</div>
<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;        }</div>
<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160; </div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;<span class="comment">         * Save for timer</span></div>
<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a9ada3083558f129abda303f9fa998b2b">ptPrev</a> = pt;</div>
<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160; </div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a> = TRUE;</div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;        <a class="code" href="a00362.html#ab16f28e9f59d44f34fed22d8412bf7f9">NtUserSetCapture</a>(hwnd);</div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">fCaptured</a> = TRUE;</div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160; </div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">fDoubleClick</a>) {</div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160; </div>
<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;<span class="comment">             * Double click.  Fake a button up and exit</span></div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;            <a class="code" href="a00182.html#acb113b5e175bc8c811ec12bcc816f3bb">xxxTrackMouse</a>(plb, WM_LBUTTONUP, pt);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;        }</div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160; </div>
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;<span class="comment">         * Set the system timer so that we can autoscroll if the mouse is</span></div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;<span class="comment">         * outside the bounds of the listbox rectangle</span></div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;        <a class="code" href="a00362.html#ad70225d60448a064c552efafd13fce64">NtUserSetTimer</a>(hwnd, IDSYS_SCROLL, <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6b46c66cae7ff432c25c07a67126b794">dtScroll</a>, NULL);</div>
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160; </div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160; </div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160; </div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;<span class="comment">         * If extended multiselection listbox, are any modifier key pressed?</span></div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == EXTENDEDSEL) {</div>
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a>(VK_SHIFT) &lt; 0)</div>
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;                wModifiers = <a class="code" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>;</div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a>(VK_CONTROL) &lt; 0)</div>
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;                wModifiers += <a class="code" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>;</div>
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160; </div>
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;<span class="comment">             * Please Note that (SHIFTDOWN + CTLDOWN) == (SHCTLDOWN)</span></div>
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;        }</div>
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160; </div>
<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>&#160; </div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;        <span class="keywordflow">switch</span> (wModifiers) {</div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00182.html#ae66d3baabfc411b47ccd09300f47793f">NOMODIFIER</a>:</div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;MouseMoveHandler:</div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> != iSelFromPt) {</div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;                <a class="code" href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a>(plb, FALSE);</div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;            }</div>
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160; </div>
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;<span class="comment">             * We only look at the mouse if the point it is pointing to is</span></div>
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;<span class="comment">             * not selected.  Since we are not in ExtendedSelMode, anywhere</span></div>
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;<span class="comment">             * the mouse points, we have to set the selection to that item.</span></div>
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;<span class="comment">             * Hence, if the item isn&#39;t selected, it means the mouse never</span></div>
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;<span class="comment">             * pointed to it before so we can select it.  We ignore already</span></div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;<span class="comment">             * selected items so that we avoid flashing the inverted</span></div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;<span class="comment">             * selection rectangle.  Also, we could get WM_SYSTIMER simulated</span></div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;<span class="comment">             * mouse moves which would cause flashing otherwise...</span></div>
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160; </div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;            iSelTemp = (fMouseInRect ? iSelFromPt : -1);</div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160; </div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;<span class="comment">             * If the LB is either SingleSel or Extended multisel, clear all</span></div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;<span class="comment">             * old selections except the new one being made.</span></div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> != MULTIPLESEL) {</div>
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;                <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, iSelTemp, iSelTemp, FALSE);</div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;            }</div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160; </div>
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160;            fSelected = <a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, iSelTemp, HILITEONLY);</div>
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160;            <span class="keywordflow">if</span> (iSelTemp != -1) {</div>
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>&#160; </div>
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>&#160;<span class="comment">                 * If it is MULTIPLESEL, then toggle; For others, only if</span></div>
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>&#160;<span class="comment">                 * not selected already, select it.</span></div>
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;                <span class="keywordflow">if</span> (((plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == MULTIPLESEL) &amp;&amp; (wMsg != WM_LBUTTONDBLCLK)) || !fSelected) {</div>
<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160;                    <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, iSelTemp, !fSelected, HILITEANDSEL);</div>
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160; </div>
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;<span class="comment">                     * And invert it</span></div>
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160;                    <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, iSelTemp, !fSelected);</div>
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;                    fSelected = !fSelected;  <span class="comment">/* Set the new state */</span></div>
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;                }</div>
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;            }</div>
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160; </div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160;<span class="comment">             * We have to set iSel in case this is a multisel lb.</span></div>
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSelTemp;</div>
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160; </div>
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;<span class="comment">             * Set the new anchor point</span></div>
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iSelFromPt;</div>
<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = iSelFromPt;</div>
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = fSelected;</div>
<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160; </div>
<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a>:</div>
<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160; </div>
<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;<span class="comment">             * This is so that we can handle click and drag for multisel</span></div>
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;<span class="comment">             * listboxes using Shift modifier key .</span></div>
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSelFromPt;</div>
<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160; </div>
<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160; </div>
<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160; </div>
<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160;<span class="comment">             * Check if an anchor point already exists</span></div>
<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> == -1) {</div>
<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160;                plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iSelFromPt;</div>
<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160; </div>
<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;<span class="comment">                 * Reset all the previous selections</span></div>
<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;                <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, FALSE);</div>
<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160; </div>
<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;<span class="comment">                 * Select the current position</span></div>
<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160;                <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, TRUE, HILITEANDSEL);</div>
<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160;                <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, TRUE);</div>
<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>&#160; </div>
<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;<span class="comment">                 * Reset all the previous selections</span></div>
<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;                <a class="code" href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, FALSE);</div>
<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160; </div>
<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;<span class="comment">                 * Select all items from anchor point upto current click pt</span></div>
<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;                <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, iSelFromPt, HILITE, HILITEONLY, FALSE);</div>
<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;            }</div>
<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)TRUE;</div>
<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160; </div>
<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a>:</div>
<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160; </div>
<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;<span class="comment">             * This is so that we can handle click and drag for multisel</span></div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;<span class="comment">             * listboxes using Control modifier key.</span></div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160; </div>
<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>&#160;<span class="comment">             * Reset the anchor point to the current point</span></div>
<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160;            plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSelFromPt;</div>
<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160; </div>
<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160;<span class="comment">             * The state we will be setting items to</span></div>
<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)!<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, iSelFromPt, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)HILITEONLY);</div>
<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160; </div>
<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;<span class="comment">             * Toggle the current point</span></div>
<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;            <a class="code" href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a>(plb, iSelFromPt, plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, HILITEANDSEL);</div>
<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;            <a class="code" href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a>(plb, iSelFromPt, plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>);</div>
<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160; </div>
<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00182.html#a6a725a791cd9142f6dfb63f0bd4ed97d">SHCTLDOWN</a>:</div>
<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160; </div>
<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;<span class="comment">             * This is so that we can handle click and drag for multisel</span></div>
<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;<span class="comment">             * listboxes using Shift and Control modifier keys.</span></div>
<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160; </div>
<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;<span class="comment">             * Preserve all the previous selections</span></div>
<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160; </div>
<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;<span class="comment">             * Deselect only the selection connected with the last</span></div>
<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;<span class="comment">             * anchor point; If the last anchor point is associated with a</span></div>
<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;<span class="comment">             * de-selection, then do not do it</span></div>
<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>) {</div>
<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;                <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a>, FALSE, HILITEANDSEL, FALSE);</div>
<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;            }</div>
<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;            plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = plb-&gt;<a class="code" href="a01921.html#ad51e2455d51f0327e18d4b156690db26">iSel</a> = iSelFromPt;</div>
<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160; </div>
<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;<span class="comment">             * Check if an anchor point already exists</span></div>
<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> == -1) {</div>
<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160; </div>
<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160;<span class="comment">                 * No existing anchor point; Make the current pt as anchor</span></div>
<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;                plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a> = iSelFromPt;</div>
<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;            }</div>
<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160; </div>
<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160;<span class="comment">             * If one exists preserve the most recent anchor point</span></div>
<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160; </div>
<div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160;<span class="comment">             * The state we will be setting items to</span></div>
<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;            plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a> = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)<a class="code" href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, HILITEONLY);</div>
<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160; </div>
<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;<span class="comment">             * Select all items from anchor point upto current click pt</span></div>
<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;            <a class="code" href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a>(plb, plb-&gt;<a class="code" href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">iMouseDown</a>, iSelFromPt, plb-&gt;<a class="code" href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">fNewItemState</a>, HILITEONLY, FALSE);</div>
<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;        }</div>
<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160; </div>
<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;<span class="comment">         * Set the new base point (the outline frame caret).  We do the check</span></div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;<span class="comment">         * first to avoid flashing the caret unnecessarly.</span></div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> != iSelFromPt) {</div>
<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160; </div>
<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;<span class="comment">             * Since xxxSetISelBase always turns on the caret, we don&#39;t need to</span></div>
<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;<span class="comment">             * do it here...</span></div>
<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;            <a class="code" href="a00182.html#a5eaf22c9a54b66cc76c7288ee61929b2">xxxSetISelBase</a>(plb, iSelFromPt);</div>
<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;        }</div>
<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160; </div>
<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;        <span class="keywordflow">if</span> (wMsg == WM_LBUTTONDOWN &amp;&amp; TestWF(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, WEFDRAGOBJECT)) {</div>
<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00362.html#ac4556c0e76c9d8cde56e931e3994bc85">NtUserDragDetect</a>(hwnd, pt)) {</div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160; </div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;<span class="comment">                 * User is trying to drag object...</span></div>
<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160; </div>
<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;<span class="comment">                 *  Fake an up click so that the item is selected...</span></div>
<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;                <a class="code" href="a00182.html#acb113b5e175bc8c811ec12bcc816f3bb">xxxTrackMouse</a>(plb, WM_LBUTTONUP, pt);</div>
<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160; </div>
<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;<span class="comment">                 * Notify parent</span></div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;<span class="comment">                 * #ifndef WIN16 (32-bit Windows), plb-&gt;iSelBase gets</span></div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;<span class="comment">                 * zero-extended to LONG wParam automatically by the compiler.</span></div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>, &amp;tlpwndParent);</div>
<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;                SendMessage(HW(plb-&gt;<a class="code" href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">spwndParent</a>), WM_BEGINDRAG, plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a>,</div>
<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;                        (LONG)hwnd);</div>
<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;                ThreadUnlock(&amp;tlpwndParent);</div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;                <a class="code" href="a00182.html#acb113b5e175bc8c811ec12bcc816f3bb">xxxTrackMouse</a>(plb, WM_LBUTTONUP, pt);</div>
<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;            }</div>
<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;        }</div>
<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160; </div>
<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;    <span class="keywordflow">case</span> WM_MOUSEMOVE: {</div>
<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;        <span class="keywordtype">int</span> dist;</div>
<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;        <span class="keywordtype">int</span> iTimer;</div>
<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160; </div>
<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;<span class="comment">         * Save for timer.</span></div>
<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;        plb-&gt;<a class="code" href="a01921.html#a9ada3083558f129abda303f9fa998b2b">ptPrev</a> = pt;</div>
<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;<span class="comment">         * Autoscroll listbox if mouse button is held down and mouse is</span></div>
<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;<span class="comment">         * moved outside of the listbox</span></div>
<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a>) {</div>
<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a622fb355036d625d60042b78025ecdc3">fMultiColumn</a>) {</div>
<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;                <span class="keywordflow">if</span> ((pt.x &lt; 0) || (pt.x &gt;= rcClient.right - 1)) {</div>
<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;<span class="comment">                     * Reset timer interval based on distance from listbox.</span></div>
<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;<span class="comment">                     * use a longer default interval because each multicolumn</span></div>
<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;<span class="comment">                     * scrolling increment is larger</span></div>
<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;                    dist = pt.x &lt; 0 ? -pt.x : (pt.x - rcClient.right + 1);</div>
<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160;                    iTimer = ((<a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6b46c66cae7ff432c25c07a67126b794">dtScroll</a> * 3) / 2) - ((WORD) dist &lt;&lt; 4);</div>
<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160; </div>
<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;                    <a class="code" href="a00188.html#ab994487194ef30089a75560dd669455a">xxxLBoxCtlHScrollMultiColumn</a>(plb, (pt.x &lt; 0 ? SB_LINEUP : SB_LINEDOWN), 0);</div>
<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160; </div>
<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;                    <span class="keywordflow">goto</span> SetTimerAndSel;</div>
<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;                }</div>
<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((pt.y &lt; 0) || (pt.y &gt;= rcClient.bottom - 1)) {</div>
<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;<span class="comment">                 * Reset timer interval based on distance from listbox.</span></div>
<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;                dist = pt.y &lt; 0 ? -pt.y : (pt.y - rcClient.bottom + 1);</div>
<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;                iTimer = <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#a6b46c66cae7ff432c25c07a67126b794">dtScroll</a> - ((WORD) dist &lt;&lt; 4);</div>
<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160; </div>
<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;                <a class="code" href="a00182.html#af0aa852734cc1ffed376aab726138cbc">xxxLBoxCtlScroll</a>(plb, (pt.y &lt; 0 ? SB_LINEUP : SB_LINEDOWN), 0);</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;SetTimerAndSel:</div>
<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;                <a class="code" href="a00362.html#ad70225d60448a064c552efafd13fce64">NtUserSetTimer</a>(hwnd, IDSYS_SCROLL, max(iTimer, 1), NULL);</div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;                <a class="code" href="a00182.html#a3be527c73d19ec7f5239d37f678d1f20">ISelFromPt</a>(plb, pt, &amp;iSelFromPt);</div>
<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160;            }</div>
<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;<span class="comment">             * Ignore if not in client since we don&#39;t autoscroll</span></div>
<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a>(&amp;rcClient, pt))</div>
<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;        }</div>
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160; </div>
<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;        <span class="keywordflow">switch</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a>) {</div>
<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;        <span class="keywordflow">case</span> SINGLESEL:</div>
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160; </div>
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;<span class="comment">             * If it is a single selection or plain multisel list box</span></div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;            <span class="keywordflow">goto</span> MouseMoveHandler;</div>
<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160; </div>
<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;        <span class="keywordflow">case</span> MULTIPLESEL:</div>
<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;        <span class="keywordflow">case</span> EXTENDEDSEL:</div>
<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160; </div>
<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;<span class="comment">             * Handle mouse movement with extended selection of items</span></div>
<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;            <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#adf215a463519586b3a5202285100f6ab">iSelBase</a> != iSelFromPt) {</div>
<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;                <a class="code" href="a00182.html#a5eaf22c9a54b66cc76c7288ee61929b2">xxxSetISelBase</a>(plb, iSelFromPt);</div>
<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160; </div>
<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;<span class="comment">                 * If this is an extended Multi sel list box, then</span></div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;<span class="comment">                 * adjust the display of the range due to the mouse move</span></div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;                <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">wMultiple</a> == EXTENDEDSEL) {</div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;                    <a class="code" href="a00182.html#ace547b9010d40429d3d1da2d6f03ffdf">xxxLBBlockHilite</a>(plb, iSelFromPt, FALSE);</div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;                }</div>
<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;                plb-&gt;<a class="code" href="a01921.html#a8c0dc9620cae7cb22027259c60715572">iLastMouseMove</a> = iSelFromPt;</div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;            }</div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;        }</div>
<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;    }</div>
<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;    <span class="keywordflow">case</span> WM_LBUTTONUP:</div>
<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;        <span class="keywordflow">if</span> (plb-&gt;<a class="code" href="a01921.html#a25db36433a3a98e02dad54d430c71c20">fMouseDown</a>)</div>
<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;            <a class="code" href="a00182.html#acb5cc8fc5e692299c9c84fdea3a7a072">xxxLBButtonUp</a>(plb, LBUP_RELEASECAPTURE | LBUP_NOTIFY |</div>
<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;                (mousetemp ? LBUP_RESETSELECTION : 0) |</div>
<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;                (fMouseInRect ? LBUP_SUCCESS : 0));</div>
<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;    }</div>
<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03752_source.html#l00725">_ClientToScreen()</a>, <a class="el" href="a03752_source.html#l00745">_GetClientRect()</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00876">tagLBIV::cMac</a>, <a class="el" href="a00182_source.html#l00017">CTLDOWN</a>, <a class="el" href="a00365_source.html#l00984">tagSERVERINFO::dtScroll</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00257_source.html#l00907">tagLBIV::fAddSelMode</a>, <a class="el" href="a00257_source.html#l00903">tagLBIV::fCaptured</a>, <a class="el" href="a00257_source.html#l00904">tagLBIV::fCaret</a>, <a class="el" href="a00257_source.html#l00905">tagLBIV::fDoubleClick</a>, <a class="el" href="a03728_source.html#l00022">FindNCHit()</a>, <a class="el" href="a00257_source.html#l00902">tagLBIV::fMouseDown</a>, <a class="el" href="a00257_source.html#l00923">tagLBIV::fMultiColumn</a>, <a class="el" href="a00257_source.html#l00918">tagLBIV::fNewItemState</a>, <a class="el" href="a03611_source.html#l00589">GetKeyState()</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00257_source.html#l00958">tagLBIV::iLastMouseMove</a>, <a class="el" href="a00257_source.html#l00951">tagLBIV::iLastSelection</a>, <a class="el" href="a00257_source.html#l00954">tagLBIV::iMouseDown</a>, <a class="el" href="a00257_source.html#l00870">tagLBIV::iSel</a>, <a class="el" href="a00257_source.html#l00871">tagLBIV::iSelBase</a>, <a class="el" href="a00182_source.html#l00821">ISelFromPt()</a>, <a class="el" href="a00182_source.html#l00428">IsSelected()</a>, <a class="el" href="a00182_source.html#l00015">NOMODIFIER</a>, <a class="el" href="a03614_source.html#l03204">NtUserCallNoParam()</a>, <a class="el" href="a03614_source.html#l06755">NtUserDragDetect()</a>, <a class="el" href="a03614_source.html#l04150">NtUserKillTimer()</a>, <a class="el" href="a03614_source.html#l04514">NtUserSetCapture()</a>, <a class="el" href="a03614_source.html#l04594">NtUserSetFocus()</a>, <a class="el" href="a03614_source.html#l04749">NtUserSetTimer()</a>, <a class="el" href="a00257_source.html#l00967">tagLBIV::pcbox</a>, <a class="el" href="a00935_source.html#l00111">PtInRect()</a>, <a class="el" href="a00257_source.html#l00889">tagLBIV::ptPrev</a>, <a class="el" href="a00365_source.html#l01399">tagWND::rcClient</a>, <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a>, <a class="el" href="a00041_source.html#l00258">SendMessageWorker()</a>, <a class="el" href="a00182_source.html#l00924">SetSelected()</a>, <a class="el" href="a00335_source.html#l00066">SFI__RESETDBLCLK</a>, <a class="el" href="a00182_source.html#l00018">SHCTLDOWN</a>, <a class="el" href="a00182_source.html#l00016">SHIFTDOWN</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00461">tagCBox::spwndEdit</a>, <a class="el" href="a00257_source.html#l00867">tagLBIV::spwndParent</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00257_source.html#l00895">tagLBIV::wMultiple</a>, <a class="el" href="a00257_source.html#l00964">tagLBIV::xOrigin</a>, <a class="el" href="a00182_source.html#l03475">xxxAlterHilite()</a>, <a class="el" href="a00053_source.html#l01497">xxxCBHideListBoxWindow()</a>, <a class="el" href="a00182_source.html#l01007">xxxInvertLBItem()</a>, <a class="el" href="a00182_source.html#l03372">xxxLBBlockHilite()</a>, <a class="el" href="a00182_source.html#l01728">xxxLBButtonUp()</a>, <a class="el" href="a00188_source.html#l00071">xxxLBoxCtlHScrollMultiColumn()</a>, <a class="el" href="a00182_source.html#l00509">xxxLBoxCtlScroll()</a>, <a class="el" href="a00182_source.html#l00385">xxxLBSetCaret()</a>, <a class="el" href="a00182_source.html#l01077">xxxResetWorld()</a>, <a class="el" href="a00182_source.html#l01174">xxxSetISelBase()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00176_source.html#l00032">ListBoxWndProcWorker()</a> , 以及 <a class="el" href="a00182_source.html#l01192">xxxTrackMouse()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00020_html_ae142b9698e40ef094e7481d595ddc9ae"><div class="ttname"><a href="a00020.html#ae142b9698e40ef094e7481d595ddc9ae">ghFontSys</a></div><div class="ttdeci">HFONT ghFontSys</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00101">clglobal.c:101</a></div></div>
<div class="ttc" id="aa00044_html_a6791113779859d3b55e5648477113adb"><div class="ttname"><a href="a00044.html#a6791113779859d3b55e5648477113adb">DrawFocusRect</a></div><div class="ttdeci">BOOL DrawFocusRect(HDC hDC, CONST RECT *pRect)</div><div class="ttdef"><b>Definition:</b> <a href="a00044_source.html#l00026">clrect.c:26</a></div></div>
<div class="ttc" id="aa03611_html_adccbe0a4e456bc7a91fcf34092672f21"><div class="ttname"><a href="a03611.html#adccbe0a4e456bc7a91fcf34092672f21">GetControlBrush</a></div><div class="ttdeci">HBRUSH GetControlBrush(HWND hwnd, HDC hdc, UINT msg)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l00623">client/ntstubs.c:623</a></div></div>
<div class="ttc" id="aa00182_html_a9aa45f03a653bac93ca3b416263a2368"><div class="ttname"><a href="a00182.html#a9aa45f03a653bac93ca3b416263a2368">LB_KEYDOWN</a></div><div class="ttdeci">#define LB_KEYDOWN</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00014">lboxctl2.c:14</a></div></div>
<div class="ttc" id="aa00371_html_a01c4659626880ba56745765a3580a36b"><div class="ttname"><a href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a></div><div class="ttdeci">#define RIPMSG0(flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00131">winerrp.h:131</a></div></div>
<div class="ttc" id="aa01921_html_acc6792141787aadc4d90abe018db1e02"><div class="ttname"><a href="a01921.html#acc6792141787aadc4d90abe018db1e02">tagLBIV::hdc</a></div><div class="ttdeci">HDC hdc</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00968">usercli.h:968</a></div></div>
<div class="ttc" id="aa01889_html_a68937d60a6f49b7a8431db62b38ea721"><div class="ttname"><a href="a01889.html#a68937d60a6f49b7a8431db62b38ea721">tagCBox::spwnd</a></div><div class="ttdeci">struct tagWND * spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00450">usercli.h:450</a></div></div>
<div class="ttc" id="aa00182_html_ad61fcc3b7a00278894d43eb819ed5b3d"><div class="ttname"><a href="a00182.html#ad61fcc3b7a00278894d43eb819ed5b3d">LBGetItemRect</a></div><div class="ttdeci">BOOL LBGetItemRect(PLBIV plb, INT sItem, LPRECT lprc)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00177">lboxctl2.c:177</a></div></div>
<div class="ttc" id="aa00041_html_a6bdc5311bb7640aba29656dd7bb4e71a"><div class="ttname"><a href="a00041.html#a6bdc5311bb7640aba29656dd7bb4e71a">SendMessageWorker</a></div><div class="ttdeci">LONG SendMessageWorker(PWND pwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL fAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00041_source.html#l00258">clmsg.c:258</a></div></div>
<div class="ttc" id="aa00194_html_a6e0ff86ca4bc63529b37c307ef9697ef"><div class="ttname"><a href="a00194.html#a6e0ff86ca4bc63529b37c307ef9697ef">CItemInWindowVarOwnerDraw</a></div><div class="ttdeci">INT CItemInWindowVarOwnerDraw(PLBIV plb, BOOL fPartial)</div><div class="ttdef"><b>Definition:</b> <a href="a00194_source.html#l00101">lboxvar.c:101</a></div></div>
<div class="ttc" id="aa01921_html_a8801059e7c206fcf355f653186fc724f"><div class="ttname"><a href="a01921.html#a8801059e7c206fcf355f653186fc724f">tagLBIV::fNotify</a></div><div class="ttdeci">UINT fNotify</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00901">usercli.h:901</a></div></div>
<div class="ttc" id="aa00182_html_a295ba52c0b994a2c9af393b67f6f840b"><div class="ttname"><a href="a00182.html#a295ba52c0b994a2c9af393b67f6f840b">IncrementISel</a></div><div class="ttdeci">INT IncrementISel(PLBIV plb, INT iSel, INT sInc)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01816">lboxctl2.c:1816</a></div></div>
<div class="ttc" id="aa01889_html_a41f22a49cb001e7a271cd52129597f71"><div class="ttname"><a href="a01889.html#a41f22a49cb001e7a271cd52129597f71">tagCBox::fLBoxVisible</a></div><div class="ttdeci">UINT fLBoxVisible</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00471">usercli.h:471</a></div></div>
<div class="ttc" id="aa00257_html_a763f0a69a1a392a3db04ce31f8fbcbac"><div class="ttname"><a href="a00257.html#a763f0a69a1a392a3db04ce31f8fbcbac">lpLBODItem</a></div><div class="ttdeci">struct tagLBODItem * lpLBODItem</div></div>
<div class="ttc" id="aa01925_html_af3803ede947055e0ca678fa0cbcc49e2"><div class="ttname"><a href="a01925.html#af3803ede947055e0ca678fa0cbcc49e2">tagLBItem::offsz</a></div><div class="ttdeci">LONG offsz</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l01022">usercli.h:1022</a></div></div>
<div class="ttc" id="aa01921_html_ad47b23688fef06f381138397a3daf2ee"><div class="ttname"><a href="a01921.html#ad47b23688fef06f381138397a3daf2ee">tagLBIV::fAddSelMode</a></div><div class="ttdeci">UINT fAddSelMode</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00907">usercli.h:907</a></div></div>
<div class="ttc" id="aa00182_html_a4138a4b8a43e2394b7d1ad5008ef7b01"><div class="ttname"><a href="a00182.html#a4138a4b8a43e2394b7d1ad5008ef7b01">LBGetDC</a></div><div class="ttdeci">BOOL LBGetDC(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00124">lboxctl2.c:124</a></div></div>
<div class="ttc" id="aa01921_html"><div class="ttname"><a href="a01921.html">tagLBIV</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00866">usercli.h:866</a></div></div>
<div class="ttc" id="aa00194_html_a3dfc1d163d07773b0854e456696b899e"><div class="ttname"><a href="a00194.html#a3dfc1d163d07773b0854e456696b899e">LBPage</a></div><div class="ttdeci">INT LBPage(PLBIV plb, INT startItem, BOOL fPageForwardDirection)</div><div class="ttdef"><b>Definition:</b> <a href="a00194_source.html#l00157">lboxvar.c:157</a></div></div>
<div class="ttc" id="aa00182_html_af7a1705d26761d569c585ce4dea28f90"><div class="ttname"><a href="a00182.html#af7a1705d26761d569c585ce4dea28f90">xxxLBoxCtlKeyInput</a></div><div class="ttdeci">void xxxLBoxCtlKeyInput(PLBIV plb, UINT msg, UINT vKey)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l02000">lboxctl2.c:2000</a></div></div>
<div class="ttc" id="aa00182_html_aec8a47dce8f07292ff58031ce8d1c6e6"><div class="ttname"><a href="a00182.html#aec8a47dce8f07292ff58031ce8d1c6e6">LBReleaseDC</a></div><div class="ttdeci">void LBReleaseDC(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00158">lboxctl2.c:158</a></div></div>
<div class="ttc" id="aa00362_html_ab79fb1908c7da8bfc42396a59d16eb20"><div class="ttname"><a href="a00362.html#ab79fb1908c7da8bfc42396a59d16eb20">NtUserScrollWindowEx</a></div><div class="ttdeci">BOOL NtUserScrollWindowEx(IN HWND hwnd, IN int XAmount, IN int YAmount, IN CONST RECT *pRect OPTIONAL, IN CONST RECT *pClipRect OPTIONAL, IN HRGN hrgnUpdate, OUT LPRECT prcUpdate OPTIONAL, IN UINT flags)</div></div>
<div class="ttc" id="aa00179_html_ab88cd7027b6acd69d6c39d4eac56cc53"><div class="ttname"><a href="a00179.html#ab88cd7027b6acd69d6c39d4eac56cc53">xxxSetLBScrollParms</a></div><div class="ttdeci">int xxxSetLBScrollParms(PLBIV plb, int nCtl)</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00026">lboxctl1.c:26</a></div></div>
<div class="ttc" id="aa00182_html_a5eaf22c9a54b66cc76c7288ee61929b2"><div class="ttname"><a href="a00182.html#a5eaf22c9a54b66cc76c7288ee61929b2">xxxSetISelBase</a></div><div class="ttdeci">void xxxSetISelBase(PLBIV plb, INT sItem)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01174">lboxctl2.c:1174</a></div></div>
<div class="ttc" id="aa01921_html_a184cfe5bce5449060dfeedb44f9cc0dc"><div class="ttname"><a href="a01921.html#a184cfe5bce5449060dfeedb44f9cc0dc">tagLBIV::dwLocaleId</a></div><div class="ttdeci">DWORD dwLocaleId</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00969">usercli.h:969</a></div></div>
<div class="ttc" id="aa01921_html_aa846f9b41c896f518fb18a97307280f2"><div class="ttname"><a href="a01921.html#aa846f9b41c896f518fb18a97307280f2">tagLBIV::cMac</a></div><div class="ttdeci">INT cMac</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00876">usercli.h:876</a></div></div>
<div class="ttc" id="aa00371_html_ad6b24a3d61abdc148c8751b5c5add686"><div class="ttname"><a href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a></div><div class="ttdeci">#define RIP_VERBOSE</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00030">winerrp.h:30</a></div></div>
<div class="ttc" id="aa00026_html_a8bc3d6c71e90bc4c6472c0647af92301"><div class="ttname"><a href="a00026.html#a8bc3d6c71e90bc4c6472c0647af92301">UpdateWindow</a></div><div class="ttdeci">BOOL UpdateWindow(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l03049">client.c:3049</a></div></div>
<div class="ttc" id="aa01921_html_ad3b86740a8dc2f157aa4ec0a31a68acc"><div class="ttname"><a href="a01921.html#ad3b86740a8dc2f157aa4ec0a31a68acc">tagLBIV::cyChar</a></div><div class="ttdeci">INT cyChar</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00885">usercli.h:885</a></div></div>
<div class="ttc" id="aa01921_html_a0c0967f12b88efa3c64b143a35789575"><div class="ttname"><a href="a01921.html#a0c0967f12b88efa3c64b143a35789575">tagLBIV::pcbox</a></div><div class="ttdeci">PCBOX pcbox</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00967">usercli.h:967</a></div></div>
<div class="ttc" id="aa00194_html_af4e081633c3039e3e07d15288e622028"><div class="ttname"><a href="a00194.html#af4e081633c3039e3e07d15288e622028">LBGetVariableHeightItemHeight</a></div><div class="ttdeci">INT LBGetVariableHeightItemHeight(PLBIV plb, INT itemNumber)</div><div class="ttdef"><b>Definition:</b> <a href="a00194_source.html#l00025">lboxvar.c:25</a></div></div>
<div class="ttc" id="aa01921_html_ad26857fa34502b7c3be7f4ea963adcc2"><div class="ttname"><a href="a01921.html#ad26857fa34502b7c3be7f4ea963adcc2">tagLBIV::itemsPerColumn</a></div><div class="ttdeci">INT itemsPerColumn</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00887">usercli.h:887</a></div></div>
<div class="ttc" id="aa00953_html_a392e62da233ed3e2f7c3fd4f487a3896"><div class="ttname"><a href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a></div><div class="ttdeci">int INT</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l00006">bench.c:6</a></div></div>
<div class="ttc" id="aa01921_html_a1124072913a956eef893c0f0eaeb37ee"><div class="ttname"><a href="a01921.html#a1124072913a956eef893c0f0eaeb37ee">tagLBIV::cxChar</a></div><div class="ttdeci">INT cxChar</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00884">usercli.h:884</a></div></div>
<div class="ttc" id="aa00362_html_a1eefde3313bfafab921776948a45e595"><div class="ttname"><a href="a00362.html#a1eefde3313bfafab921776948a45e595">NtUserGetDC</a></div><div class="ttdeci">HDC NtUserGetDC(IN HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l05248">kernel/ntstubs.c:5248</a></div></div>
<div class="ttc" id="aa00365_html_a373eb8782e10ebad75e466db8d01ebe0"><div class="ttname"><a href="a00365.html#a373eb8782e10ebad75e466db8d01ebe0">_GetClientRect</a></div><div class="ttdeci">BOOL _GetClientRect(PWND pwnd, LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00745">rtl/wow.c:745</a></div></div>
<div class="ttc" id="aa01921_html_ad4c13b553aaf7089d455da60aa2ff1a1"><div class="ttname"><a href="a01921.html#ad4c13b553aaf7089d455da60aa2ff1a1">tagLBIV::iTabPixelPositions</a></div><div class="ttdeci">LPINT iTabPixelPositions</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00962">usercli.h:962</a></div></div>
<div class="ttc" id="aa02513_html_a931541f19a143339ff4639317f7e88e8"><div class="ttname"><a href="a02513.html#a931541f19a143339ff4639317f7e88e8">tagSERVERINFO::dtLBSearch</a></div><div class="ttdeci">UINT dtLBSearch</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00985">user.h:985</a></div></div>
<div class="ttc" id="aa00182_html_a10491ea26ff51be57c5b81c1d9d0e8c1"><div class="ttname"><a href="a00182.html#a10491ea26ff51be57c5b81c1d9d0e8c1">CItemInWindow</a></div><div class="ttdeci">INT CItemInWindow(PLBIV plb, BOOL fPartial)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00474">lboxctl2.c:474</a></div></div>
<div class="ttc" id="aa01921_html_ab5c46a12f9054c978c19f39dba9acd91"><div class="ttname"><a href="a01921.html#ab5c46a12f9054c978c19f39dba9acd91">tagLBIV::fNewItemState</a></div><div class="ttdeci">UINT fNewItemState</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00918">usercli.h:918</a></div></div>
<div class="ttc" id="aa00335_html_a062fd6afd0c6612b89846c19a71d01fa"><div class="ttname"><a href="a00335.html#a062fd6afd0c6612b89846c19a71d01fa">SFI__RESETDBLCLK</a></div><div class="ttdeci">#define SFI__RESETDBLCLK</div><div class="ttdef"><b>Definition:</b> <a href="a00335_source.html#l00066">cscall.h:66</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa00182_html_af0aa852734cc1ffed376aab726138cbc"><div class="ttname"><a href="a00182.html#af0aa852734cc1ffed376aab726138cbc">xxxLBoxCtlScroll</a></div><div class="ttdeci">void xxxLBoxCtlScroll(PLBIV plb, INT cmd, int yAmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00509">lboxctl2.c:509</a></div></div>
<div class="ttc" id="aa00182_html_acb113b5e175bc8c811ec12bcc816f3bb"><div class="ttname"><a href="a00182.html#acb113b5e175bc8c811ec12bcc816f3bb">xxxTrackMouse</a></div><div class="ttdeci">void xxxTrackMouse(PLBIV plb, UINT wMsg, POINT pt)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01192">lboxctl2.c:1192</a></div></div>
<div class="ttc" id="aa00182_html_a4dc6f46978c05a8a183896c3e9c15caf"><div class="ttname"><a href="a00182.html#a4dc6f46978c05a8a183896c3e9c15caf">xxxInvertLBItem</a></div><div class="ttdeci">void xxxInvertLBItem(PLBIV plb, INT i, BOOL fHilite)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01007">lboxctl2.c:1007</a></div></div>
<div class="ttc" id="aa00257_html_a1a0c8a4d04c1e16bcedb6e1e4f74053e"><div class="ttname"><a href="a00257.html#a1a0c8a4d04c1e16bcedb6e1e4f74053e">LBODItem</a></div><div class="ttdeci">struct tagLBODItem LBODItem</div></div>
<div class="ttc" id="aa01921_html_a2ce25ccdb5a932ee4e4a66b2a9311714"><div class="ttname"><a href="a01921.html#a2ce25ccdb5a932ee4e4a66b2a9311714">tagLBIV::iLastSelection</a></div><div class="ttdeci">INT iLastSelection</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00951">usercli.h:951</a></div></div>
<div class="ttc" id="aa01889_html_a56b3ae70b1ea16fc62fddcf1f8f3b7aa"><div class="ttname"><a href="a01889.html#a56b3ae70b1ea16fc62fddcf1f8f3b7aa">tagCBox::fKeyboardSelInListBox</a></div><div class="ttdeci">UINT fKeyboardSelInListBox</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00475">usercli.h:475</a></div></div>
<div class="ttc" id="aa00356_html_a3f53b9d5a549a62853c4e3fb22b649d7"><div class="ttname"><a href="a00356.html#a3f53b9d5a549a62853c4e3fb22b649d7">PostMessage</a></div><div class="ttdeci">BOOL APIENTRY PostMessage(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00356_source.html#l00471">ntcftxt.h:471</a></div></div>
<div class="ttc" id="aa00182_html_a0558a2e34e28a7db61cf8fd4c394f172"><div class="ttname"><a href="a00182.html#a0558a2e34e28a7db61cf8fd4c394f172">LBPrintCallback</a></div><div class="ttdeci">BOOL CALLBACK LBPrintCallback(HDC hdc, LPWSTR lpstr, PLBIV plb, int cx, int cy)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00273">lboxctl2.c:273</a></div></div>
<div class="ttc" id="aa00176_html_af8fe5eea4ff2e080e2f80ff86719a3c8"><div class="ttname"><a href="a00176.html#af8fe5eea4ff2e080e2f80ff86719a3c8">GetLpszItem</a></div><div class="ttdeci">LPWSTR GetLpszItem(PLBIV pLBIV, INT sItem)</div><div class="ttdef"><b>Definition:</b> <a href="a00176_source.html#l00812">lb1.c:812</a></div></div>
<div class="ttc" id="aa00362_html_a3aa84979aeb1f89caa4217dc0f88b104"><div class="ttname"><a href="a00362.html#a3aa84979aeb1f89caa4217dc0f88b104">NtUserSetFocus</a></div><div class="ttdeci">HWND NtUserSetFocus(IN HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04594">kernel/ntstubs.c:4594</a></div></div>
<div class="ttc" id="aa01921_html_a5ac5d27cb973307dfdfdac0d1e95c9d3"><div class="ttname"><a href="a01921.html#a5ac5d27cb973307dfdfdac0d1e95c9d3">tagLBIV::fCaptured</a></div><div class="ttdeci">UINT fCaptured</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00903">usercli.h:903</a></div></div>
<div class="ttc" id="aa01929_html"><div class="ttname"><a href="a01929.html">tagLBODItem</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l01026">usercli.h:1026</a></div></div>
<div class="ttc" id="aa01921_html_a80b0656135ca243454b281299f0cebe2"><div class="ttname"><a href="a01921.html#a80b0656135ca243454b281299f0cebe2">tagLBIV::fDeferUpdate</a></div><div class="ttdeci">UINT fDeferUpdate</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00894">usercli.h:894</a></div></div>
<div class="ttc" id="aa01921_html_ac78ad025d5ad2100193d42ab9c1a963e"><div class="ttname"><a href="a01921.html#ac78ad025d5ad2100193d42ab9c1a963e">tagLBIV::maxWidth</a></div><div class="ttdeci">int maxWidth</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00965">usercli.h:965</a></div></div>
<div class="ttc" id="aa01921_html_a8c0dc9620cae7cb22027259c60715572"><div class="ttname"><a href="a01921.html#a8c0dc9620cae7cb22027259c60715572">tagLBIV::iLastMouseMove</a></div><div class="ttdeci">INT iLastMouseMove</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00958">usercli.h:958</a></div></div>
<div class="ttc" id="aa01921_html_a7180230449158127a3f88b1441f673f2"><div class="ttname"><a href="a01921.html#a7180230449158127a3f88b1441f673f2">tagLBIV::rgpch</a></div><div class="ttdeci">PBYTE rgpch</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00879">usercli.h:879</a></div></div>
<div class="ttc" id="aa03218_html_ae26ce3dc07600e498cf775825d894b6a"><div class="ttname"><a href="a03218.html#ae26ce3dc07600e498cf775825d894b6a">TabTextOut</a></div><div class="ttdeci">LONG TabTextOut(HDC hdc, int x, int y, LPCWSTR lpstring, int nCount, int nTabPositions, LPINT lpTabPositions, int iTabOrigin, BOOL fDrawTheText)</div><div class="ttdef"><b>Definition:</b> <a href="a03218_source.html#l00171">client/drawtext.c:171</a></div></div>
<div class="ttc" id="aa01921_html_a9ada3083558f129abda303f9fa998b2b"><div class="ttname"><a href="a01921.html#a9ada3083558f129abda303f9fa998b2b">tagLBIV::ptPrev</a></div><div class="ttdeci">POINT ptPrev</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00889">usercli.h:889</a></div></div>
<div class="ttc" id="aa01921_html_abd82c7a0e6e732b48c85d792963b2414"><div class="ttname"><a href="a01921.html#abd82c7a0e6e732b48c85d792963b2414">tagLBIV::pszTypeSearch</a></div><div class="ttdeci">LPWSTR pszTypeSearch</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00971">usercli.h:971</a></div></div>
<div class="ttc" id="aa00365_html_a202c4352bfc572d57289c5ba006e2d9f"><div class="ttname"><a href="a00365.html#a202c4352bfc572d57289c5ba006e2d9f">FindNCHit</a></div><div class="ttdeci">int FindNCHit(PWND pwnd, LONG lPt)</div><div class="ttdef"><b>Definition:</b> <a href="a03728_source.html#l00022">rtl/winmgr.c:22</a></div></div>
<div class="ttc" id="aa00182_html_a3ef3568d65f91ee105e66263b0863a16"><div class="ttname"><a href="a00182.html#a3ef3568d65f91ee105e66263b0863a16">xxxLBoxDrawItem</a></div><div class="ttdeci">void xxxLBoxDrawItem(PLBIV plb, INT item, UINT itemAction, UINT itemState, LPRECT lprect)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l03285">lboxctl2.c:3285</a></div></div>
<div class="ttc" id="aa00182_html_ab0f5d974473ed2d1730f3bab33096aa8"><div class="ttname"><a href="a00182.html#ab0f5d974473ed2d1730f3bab33096aa8">IsSelected</a></div><div class="ttdeci">BOOL IsSelected(PLBIV plb, INT sItem, UINT wOpFlags)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00428">lboxctl2.c:428</a></div></div>
<div class="ttc" id="aa01921_html_ae4c077c45b12c7f8065672dbc5efa65f"><div class="ttname"><a href="a01921.html#ae4c077c45b12c7f8065672dbc5efa65f">tagLBIV::fWantKeyboardInput</a></div><div class="ttdeci">UINT fWantKeyboardInput</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00927">usercli.h:927</a></div></div>
<div class="ttc" id="aa00257_html_a902d9d1c6aa646f726373a5bb52fd9e5"><div class="ttname"><a href="a00257.html#a902d9d1c6aa646f726373a5bb52fd9e5">PLBWND</a></div><div class="ttdeci">struct tagLBWND * PLBWND</div></div>
<div class="ttc" id="aa01921_html_a966f3d0dd6186f52544df9f242eca9bf"><div class="ttname"><a href="a01921.html#a966f3d0dd6186f52544df9f242eca9bf">tagLBIV::fCaretOn</a></div><div class="ttdeci">UINT fCaretOn</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00906">usercli.h:906</a></div></div>
<div class="ttc" id="aa00371_html_ae61d954062a9ece52e350e54cad9a23d"><div class="ttname"><a href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a></div><div class="ttdeci">#define RIPERR0(idErr, flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00119">winerrp.h:119</a></div></div>
<div class="ttc" id="aa00899_html_abfae1dfb48db23dcea4494f7990ad6a6"><div class="ttname"><a href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a></div><div class="ttdeci">VOID ThreadLock(PVOID pobj, PTL ptl)</div></div>
<div class="ttc" id="aa00257_html_a7834189a4c8f8e19088773b593228d40"><div class="ttname"><a href="a00257.html#a7834189a4c8f8e19088773b593228d40">lpLBItem</a></div><div class="ttdeci">struct tagLBItem * lpLBItem</div></div>
<div class="ttc" id="aa00182_html_a32fb898518333f6e10ba7459f4b05c8b"><div class="ttname"><a href="a00182.html#a32fb898518333f6e10ba7459f4b05c8b">LastFullVisible</a></div><div class="ttdeci">INT LastFullVisible(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00986">lboxctl2.c:986</a></div></div>
<div class="ttc" id="aa01921_html_a9a44c9750003967e35e3e9618dbb9f9f"><div class="ttname"><a href="a01921.html#a9a44c9750003967e35e3e9618dbb9f9f">tagLBIV::wMultiple</a></div><div class="ttdeci">UINT wMultiple</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00895">usercli.h:895</a></div></div>
<div class="ttc" id="aa00935_html_a1c87c29903dd37145cd93b64140a5d3a"><div class="ttname"><a href="a00935.html#a1c87c29903dd37145cd93b64140a5d3a">IntersectRect</a></div><div class="ttdeci">BOOL APIENTRY IntersectRect(LPRECT prcDst, CONST RECT *prcSrc1, CONST RECT *prcSrc2)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00184">rect.c:184</a></div></div>
<div class="ttc" id="aa00182_html_a718e81e0f22adc2db136a403777a398c"><div class="ttname"><a href="a00182.html#a718e81e0f22adc2db136a403777a398c">pODRg</a></div><div class="ttdeci">#define pODRg</div></div>
<div class="ttc" id="aa01921_html_ad608b48791acd2c231c3e7b7bcf69067"><div class="ttname"><a href="a01921.html#ad608b48791acd2c231c3e7b7bcf69067">tagLBIV::fHasData</a></div><div class="ttdeci">UINT fHasData</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00912">usercli.h:912</a></div></div>
<div class="ttc" id="aa00362_html_ad70225d60448a064c552efafd13fce64"><div class="ttname"><a href="a00362.html#ad70225d60448a064c552efafd13fce64">NtUserSetTimer</a></div><div class="ttdeci">UINT NtUserSetTimer(IN HWND hwnd, IN UINT nIDEvent, IN UINT wElapse, IN TIMERPROC pTimerFunc)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04749">kernel/ntstubs.c:4749</a></div></div>
<div class="ttc" id="aa00182_html_ac810d042302264353670e5c8e682f729"><div class="ttname"><a href="a00182.html#ac810d042302264353670e5c8e682f729">xxxLBoxCaretBlinker</a></div><div class="ttdeci">LONG xxxLBoxCaretBlinker(HWND hwnd, UINT wMsg, UINT nIDEvent, LONG dwTime)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01963">lboxctl2.c:1963</a></div></div>
<div class="ttc" id="aa01921_html_a24b6de31024474ff1550465e19d10ae6"><div class="ttname"><a href="a01921.html#a24b6de31024474ff1550465e19d10ae6">tagLBIV::fSort</a></div><div class="ttdeci">UINT fSort</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00900">usercli.h:900</a></div></div>
<div class="ttc" id="aa00179_html_a991eafcaf220c88b32c3bba40a8ed01c"><div class="ttname"><a href="a00179.html#a991eafcaf220c88b32c3bba40a8ed01c">xxxLBShowHideScrollBars</a></div><div class="ttdeci">void xxxLBShowHideScrollBars(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00117">lboxctl1.c:117</a></div></div>
<div class="ttc" id="aa00362_html_ac4556c0e76c9d8cde56e931e3994bc85"><div class="ttname"><a href="a00362.html#ac4556c0e76c9d8cde56e931e3994bc85">NtUserDragDetect</a></div><div class="ttdeci">BOOL NtUserDragDetect(IN HWND hwnd, IN POINT pt)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l06755">kernel/ntstubs.c:6755</a></div></div>
<div class="ttc" id="aa01921_html_a48c3e8983b7f7d5047c9acf709e93b91"><div class="ttname"><a href="a01921.html#a48c3e8983b7f7d5047c9acf709e93b91">tagLBIV::fDoubleClick</a></div><div class="ttdeci">UINT fDoubleClick</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00905">usercli.h:905</a></div></div>
<div class="ttc" id="aa00362_html_ab16f28e9f59d44f34fed22d8412bf7f9"><div class="ttname"><a href="a00362.html#ab16f28e9f59d44f34fed22d8412bf7f9">NtUserSetCapture</a></div><div class="ttdeci">HWND NtUserSetCapture(IN HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04514">kernel/ntstubs.c:4514</a></div></div>
<div class="ttc" id="aa01925_html"><div class="ttname"><a href="a01925.html">tagLBItem</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l01021">usercli.h:1021</a></div></div>
<div class="ttc" id="aa00188_html_ab994487194ef30089a75560dd669455a"><div class="ttname"><a href="a00188.html#ab994487194ef30089a75560dd669455a">xxxLBoxCtlHScrollMultiColumn</a></div><div class="ttdeci">void xxxLBoxCtlHScrollMultiColumn(PLBIV plb, INT cmd, INT xAmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00188_source.html#l00071">lboxmult.c:71</a></div></div>
<div class="ttc" id="aa00263_html_ad8538f97a4c88898ed54c5aa17c58d09"><div class="ttname"><a href="a00263.html#ad8538f97a4c88898ed54c5aa17c58d09">GetScrollInfo</a></div><div class="ttdeci">BOOL GetScrollInfo(HWND hwnd, int code, LPSCROLLINFO lpsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00346">winmgrc.c:346</a></div></div>
<div class="ttc" id="aa00935_html_a75b3bf802c369845c4381fcee638bc8a"><div class="ttname"><a href="a00935.html#a75b3bf802c369845c4381fcee638bc8a">PtInRect</a></div><div class="ttdeci">BOOL APIENTRY PtInRect(CONST RECT *prc, POINT pt)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00111">rect.c:111</a></div></div>
<div class="ttc" id="aa01921_html_ab77045ac872df15332c0f71fe22c688a"><div class="ttname"><a href="a01921.html#ab77045ac872df15332c0f71fe22c688a">tagLBIV::fNoSel</a></div><div class="ttdeci">UINT fNoSel</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00941">usercli.h:941</a></div></div>
<div class="ttc" id="aa01921_html_a6ff15d59e2ec810d611f15e071e59de2"><div class="ttname"><a href="a01921.html#a6ff15d59e2ec810d611f15e071e59de2">tagLBIV::fUseTabStops</a></div><div class="ttdeci">UINT fUseTabStops</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00920">usercli.h:920</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00182_html_ad333a7027751ae3d3eb3b4e5ba986b80"><div class="ttname"><a href="a00182.html#ad333a7027751ae3d3eb3b4e5ba986b80">xxxLBInvalidateRect</a></div><div class="ttdeci">BOOL xxxLBInvalidateRect(PLBIV plb, LPRECT lprc, BOOL fErase)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00036">lboxctl2.c:36</a></div></div>
<div class="ttc" id="aa02581_html_ad680eabbc65eb4d160362e2c73a19994"><div class="ttname"><a href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">tagWND::spmenu</a></div><div class="ttdeci">struct tagMENU * spmenu</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01413">user.h:1413</a></div></div>
<div class="ttc" id="aa03212_html_a49402fd1bea89e835e5bc8bc96de744f"><div class="ttname"><a href="a03212.html#a49402fd1bea89e835e5bc8bc96de744f">FillRect</a></div><div class="ttdeci">int APIENTRY FillRect(HDC hdc, LPCRECT prc, HBRUSH hBrush)</div><div class="ttdef"><b>Definition:</b> <a href="a03212_source.html#l00029">rtl/draw.c:29</a></div></div>
<div class="ttc" id="aa01881_html"><div class="ttname"><a href="a01881.html">_TL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00347">usercli.h:347</a></div></div>
<div class="ttc" id="aa01921_html_abf52a6d63a553ed418bada12c9b2417b"><div class="ttname"><a href="a01921.html#abf52a6d63a553ed418bada12c9b2417b">tagLBIV::iMouseDown</a></div><div class="ttdeci">INT iMouseDown</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00954">usercli.h:954</a></div></div>
<div class="ttc" id="aa00182_html_aeba92583929559a636e7578de8af1e6e"><div class="ttname"><a href="a00182.html#aeba92583929559a636e7578de8af1e6e">xxxResetWorld</a></div><div class="ttdeci">void xxxResetWorld(PLBIV plb, INT iStart, INT iEnd, BOOL fSelect)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01077">lboxctl2.c:1077</a></div></div>
<div class="ttc" id="aa00182_html_ac49ebe397493c9908b4f22eadd65d5f6"><div class="ttname"><a href="a00182.html#ac49ebe397493c9908b4f22eadd65d5f6">xxxInsureVisible</a></div><div class="ttdeci">void xxxInsureVisible(PLBIV plb, INT iSel, BOOL fPartial)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01916">lboxctl2.c:1916</a></div></div>
<div class="ttc" id="aa01921_html_a4c7cc6d8519ffa5ea6a54871de55ff67"><div class="ttname"><a href="a01921.html#a4c7cc6d8519ffa5ea6a54871de55ff67">tagLBIV::cxColumn</a></div><div class="ttdeci">INT cxColumn</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00886">usercli.h:886</a></div></div>
<div class="ttc" id="aa00182_html_a3e0630367eb018bf40e9bbc5924249ba"><div class="ttname"><a href="a00182.html#a3e0630367eb018bf40e9bbc5924249ba">xxxNotifyOwner</a></div><div class="ttdeci">void xxxNotifyOwner(PLBIV plb, INT sEvt)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01140">lboxctl2.c:1140</a></div></div>
<div class="ttc" id="aa02581_html_a2778d611c2b27395e559c94d05732e1f"><div class="ttname"><a href="a02581.html#a2778d611c2b27395e559c94d05732e1f">tagWND::rcWindow</a></div><div class="ttdeci">RECT rcWindow</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01398">user.h:1398</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa02581_html_a6053af0b243b6737640988eb63081de3"><div class="ttname"><a href="a02581.html#a6053af0b243b6737640988eb63081de3">tagWND::spwndParent</a></div><div class="ttdeci">struct tagWND * spwndParent</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01392">user.h:1392</a></div></div>
<div class="ttc" id="aa03611_html_abfc832913f8578ba8a06e1c97b32eac0"><div class="ttname"><a href="a03611.html#abfc832913f8578ba8a06e1c97b32eac0">GetControlColor</a></div><div class="ttdeci">HBRUSH GetControlColor(HWND hwndParent, HWND hwndCtl, HDC hdc, UINT msg)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l00641">client/ntstubs.c:641</a></div></div>
<div class="ttc" id="aa00362_html_a3d1e04978c2c8aa7594bb2ce1187a6ad"><div class="ttname"><a href="a00362.html#a3d1e04978c2c8aa7594bb2ce1187a6ad">NtUserKillTimer</a></div><div class="ttdeci">BOOL NtUserKillTimer(IN HWND hwnd, IN UINT nIDEvent)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04150">kernel/ntstubs.c:4150</a></div></div>
<div class="ttc" id="aa00179_html_a6884cfb39f26b8e1f44ad90a3e96b3d1"><div class="ttname"><a href="a00179.html#a6884cfb39f26b8e1f44ad90a3e96b3d1">LBGetItemData</a></div><div class="ttdeci">LONG LBGetItemData(PLBIV plb, INT sItem)</div><div class="ttdef"><b>Definition:</b> <a href="a00179_source.html#l00168">lboxctl1.c:168</a></div></div>
<div class="ttc" id="aa00182_html_aaa2bbef4dbb327ad82e5b1a6acbb713a"><div class="ttname"><a href="a00182.html#aaa2bbef4dbb327ad82e5b1a6acbb713a">xxxLBGetBrush</a></div><div class="ttdeci">HBRUSH xxxLBGetBrush(PLBIV plb, HBRUSH *phbrOld)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00058">lboxctl2.c:58</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa01921_html_a622fb355036d625d60042b78025ecdc3"><div class="ttname"><a href="a01921.html#a622fb355036d625d60042b78025ecdc3">tagLBIV::fMultiColumn</a></div><div class="ttdeci">UINT fMultiColumn</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00923">usercli.h:923</a></div></div>
<div class="ttc" id="aa00182_html_a3be527c73d19ec7f5239d37f678d1f20"><div class="ttname"><a href="a00182.html#a3be527c73d19ec7f5239d37f678d1f20">ISelFromPt</a></div><div class="ttdeci">BOOL ISelFromPt(PLBIV plb, POINT pt, LPDWORD piItem)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00821">lboxctl2.c:821</a></div></div>
<div class="ttc" id="aa00716_html_ac7b5fb8555805e7e7c11b30491a324f7"><div class="ttname"><a href="a00716.html#ac7b5fb8555805e7e7c11b30491a324f7">cy</a></div><div class="ttdeci">int cy[5]</div><div class="ttdef"><b>Definition:</b> <a href="a00716_source.html#l00456">inctlpan.c:456</a></div></div>
<div class="ttc" id="aa00362_html_acfbb149ad39bc9929fb7063d4276e470"><div class="ttname"><a href="a00362.html#acfbb149ad39bc9929fb7063d4276e470">NtUserInvalidateRect</a></div><div class="ttdeci">BOOL NtUserInvalidateRect(IN HWND hwnd, IN CONST RECT *prect OPTIONAL, IN BOOL bErase)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04092">kernel/ntstubs.c:4092</a></div></div>
<div class="ttc" id="aa01921_html_ab84d959c8cc5598602cd735047f91f06"><div class="ttname"><a href="a01921.html#ab84d959c8cc5598602cd735047f91f06">tagLBIV::iTop</a></div><div class="ttdeci">INT iTop</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00869">usercli.h:869</a></div></div>
<div class="ttc" id="aa00182_html_ae66d3baabfc411b47ccd09300f47793f"><div class="ttname"><a href="a00182.html#ae66d3baabfc411b47ccd09300f47793f">NOMODIFIER</a></div><div class="ttdeci">#define NOMODIFIER</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00015">lboxctl2.c:15</a></div></div>
<div class="ttc" id="aa01921_html_a10cabd3870f697deba5823036713c506"><div class="ttname"><a href="a01921.html#a10cabd3870f697deba5823036713c506">tagLBIV::OwnerDraw</a></div><div class="ttdeci">UINT OwnerDraw</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00892">usercli.h:892</a></div></div>
<div class="ttc" id="aa01921_html_a25db36433a3a98e02dad54d430c71c20"><div class="ttname"><a href="a01921.html#a25db36433a3a98e02dad54d430c71c20">tagLBIV::fMouseDown</a></div><div class="ttdeci">UINT fMouseDown</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00902">usercli.h:902</a></div></div>
<div class="ttc" id="aa01889_html_a2d22bfa9dcbd27c904993db8e1a916db"><div class="ttname"><a href="a01889.html#a2d22bfa9dcbd27c904993db8e1a916db">tagCBox::spwndEdit</a></div><div class="ttdeci">struct tagWND * spwndEdit</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00461">usercli.h:461</a></div></div>
<div class="ttc" id="aa00362_html_ab64eb963b74811908a5b9bc99d77b8ac"><div class="ttname"><a href="a00362.html#ab64eb963b74811908a5b9bc99d77b8ac">NtUserCallNoParam</a></div><div class="ttdeci">DWORD NtUserCallNoParam(IN DWORD xpfnProc)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l03204">kernel/ntstubs.c:3204</a></div></div>
<div class="ttc" id="aa01889_html_abf7af4e542b547981f74b0cf6eb1ebef"><div class="ttname"><a href="a01889.html#abf7af4e542b547981f74b0cf6eb1ebef">tagCBox::fExtendedUI</a></div><div class="ttdeci">UINT fExtendedUI</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00482">usercli.h:482</a></div></div>
<div class="ttc" id="aa00182_html_a58029b2cd62b3d58b35d444b91ae94c6"><div class="ttname"><a href="a00182.html#a58029b2cd62b3d58b35d444b91ae94c6">CTLDOWN</a></div><div class="ttdeci">#define CTLDOWN</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00017">lboxctl2.c:17</a></div></div>
<div class="ttc" id="aa00182_html_a61f572dfb2a8ee4f0b9632342e190071"><div class="ttname"><a href="a00182.html#a61f572dfb2a8ee4f0b9632342e190071">MAX_TYPESEARCH</a></div><div class="ttdeci">#define MAX_TYPESEARCH</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00023">lboxctl2.c:23</a></div></div>
<div class="ttc" id="aa00194_html_ade731f94bec18cb62374143bd2539924"><div class="ttname"><a href="a00194.html#ade731f94bec18cb62374143bd2539924">LBCalcVarITopScrollAmt</a></div><div class="ttdeci">INT LBCalcVarITopScrollAmt(PLBIV plb, INT iTopOld, INT iTopNew)</div><div class="ttdef"><b>Definition:</b> <a href="a00194_source.html#l00198">lboxvar.c:198</a></div></div>
<div class="ttc" id="aa00053_html_a853b850891e533a1984c6d42ff5a9205"><div class="ttname"><a href="a00053.html#a853b850891e533a1984c6d42ff5a9205">xxxCBShowListBoxWindow</a></div><div class="ttdeci">void xxxCBShowListBoxWindow(PCBOX pcbox, BOOL fTrack)</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l01600">combo.c:1600</a></div></div>
<div class="ttc" id="aa01921_html_ab2a934bf9afb31afe96402ee89a76106"><div class="ttname"><a href="a01921.html#ab2a934bf9afb31afe96402ee89a76106">tagLBIV::fHasStrings</a></div><div class="ttdeci">UINT fHasStrings</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00908">usercli.h:908</a></div></div>
<div class="ttc" id="aa01921_html_acef4f1ea8a2a05629749d4ddfb105bd2"><div class="ttname"><a href="a01921.html#acef4f1ea8a2a05629749d4ddfb105bd2">tagLBIV::spwndParent</a></div><div class="ttdeci">PWND spwndParent</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00867">usercli.h:867</a></div></div>
<div class="ttc" id="aa00182_html_abbe4f724310a04746730870a9690aa0f"><div class="ttname"><a href="a00182.html#abbe4f724310a04746730870a9690aa0f">LBInitDC</a></div><div class="ttdeci">void LBInitDC(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00100">lboxctl2.c:100</a></div></div>
<div class="ttc" id="aa03611_html_a4dfda995bf0f082361527377e6e63833"><div class="ttname"><a href="a03611.html#a4dfda995bf0f082361527377e6e63833">RedrawWindow</a></div><div class="ttdeci">BOOL RedrawWindow(HWND hwnd, CONST RECT *prcUpdate, HRGN hrgnUpdate, UINT flags)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l01037">client/ntstubs.c:1037</a></div></div>
<div class="ttc" id="aa00365_html_a9adcce0ae7f3f1108645323a0d2be59d"><div class="ttname"><a href="a00365.html#a9adcce0ae7f3f1108645323a0d2be59d">_ClientToScreen</a></div><div class="ttdeci">BOOL _ClientToScreen(PWND pwnd, PPOINT ppt)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00725">rtl/wow.c:725</a></div></div>
<div class="ttc" id="aa00182_html_a0ba8a913f6bc9410a77d03fddce6dff5"><div class="ttname"><a href="a00182.html#a0ba8a913f6bc9410a77d03fddce6dff5">xxxFindString</a></div><div class="ttdeci">INT xxxFindString(PLBIV plb, LPWSTR lpstr, INT sStart, INT code, BOOL fWrap)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l02583">lboxctl2.c:2583</a></div></div>
<div class="ttc" id="aa00293_html_a41d387d1b2d42169cbaa2092c8a02abf"><div class="ttname"><a href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a></div><div class="ttdeci">#define ValidateHwnd(hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00090">immcli.h:90</a></div></div>
<div class="ttc" id="aa00182_html_a6a725a791cd9142f6dfb63f0bd4ed97d"><div class="ttname"><a href="a00182.html#a6a725a791cd9142f6dfb63f0bd4ed97d">SHCTLDOWN</a></div><div class="ttdeci">#define SHCTLDOWN</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00018">lboxctl2.c:18</a></div></div>
<div class="ttc" id="aa01921_html_a28addd302ddcd18f236d3df387de182d"><div class="ttname"><a href="a01921.html#a28addd302ddcd18f236d3df387de182d">tagLBIV::hFont</a></div><div class="ttdeci">HANDLE hFont</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00963">usercli.h:963</a></div></div>
<div class="ttc" id="aa01921_html_af031416b0c1aad3b57cc15c469f41ecc"><div class="ttname"><a href="a01921.html#af031416b0c1aad3b57cc15c469f41ecc">tagLBIV::cItemFullMax</a></div><div class="ttdeci">INT cItemFullMax</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00872">usercli.h:872</a></div></div>
<div class="ttc" id="aa01921_html_aaef455959b7907cbaff286e61c5e029b"><div class="ttname"><a href="a01921.html#aaef455959b7907cbaff286e61c5e029b">tagLBIV::xOrigin</a></div><div class="ttdeci">int xOrigin</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00964">usercli.h:964</a></div></div>
<div class="ttc" id="aa00257_html_a6091781f063921fc304335d7f87acbd4"><div class="ttname"><a href="a00257.html#a6091781f063921fc304335d7f87acbd4">LBItem</a></div><div class="ttdeci">struct tagLBItem LBItem</div></div>
<div class="ttc" id="aa01921_html_ad51e2455d51f0327e18d4b156690db26"><div class="ttname"><a href="a01921.html#ad51e2455d51f0327e18d4b156690db26">tagLBIV::iSel</a></div><div class="ttdeci">INT iSel</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00870">usercli.h:870</a></div></div>
<div class="ttc" id="aa00182_html_aa770501c874de9bae50247cb650a6950"><div class="ttname"><a href="a00182.html#aa770501c874de9bae50247cb650a6950">SHIFTDOWN</a></div><div class="ttdeci">#define SHIFTDOWN</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00016">lboxctl2.c:16</a></div></div>
<div class="ttc" id="aa02513_html_a337256ee4b9e7c11b14e88d307effa30"><div class="ttname"><a href="a02513.html#a337256ee4b9e7c11b14e88d307effa30">tagSERVERINFO::dtCaretBlink</a></div><div class="ttdeci">UINT dtCaretBlink</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00986">user.h:986</a></div></div>
<div class="ttc" id="aa01921_html_a5bd218ff1246ad262a29b369703fe78c"><div class="ttname"><a href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">tagLBIV::spwnd</a></div><div class="ttdeci">PWND spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00868">usercli.h:868</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa01889_html"><div class="ttname"><a href="a01889.html">tagCBox</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00449">usercli.h:449</a></div></div>
<div class="ttc" id="aa00899_html_a70b09c3e2b495630f4205d34be505afb"><div class="ttname"><a href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a></div><div class="ttdeci">VOID CheckLock(PVOID pobj)</div></div>
<div class="ttc" id="aa01921_html_ae3f41ae09649e6eb90edca233ee0953f"><div class="ttname"><a href="a01921.html#ae3f41ae09649e6eb90edca233ee0953f">tagLBIV::hStrings</a></div><div class="ttdeci">LPWSTR hStrings</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00880">usercli.h:880</a></div></div>
<div class="ttc" id="aa00182_html_a739b28ba311ee4abe56b082e80cb63e4"><div class="ttname"><a href="a00182.html#a739b28ba311ee4abe56b082e80cb63e4">xxxLBSetCaret</a></div><div class="ttdeci">void xxxLBSetCaret(PLBIV plb, BOOL fSetCaret)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00385">lboxctl2.c:385</a></div></div>
<div class="ttc" id="aa00182_html_ace547b9010d40429d3d1da2d6f03ffdf"><div class="ttname"><a href="a00182.html#ace547b9010d40429d3d1da2d6f03ffdf">xxxLBBlockHilite</a></div><div class="ttdeci">void xxxLBBlockHilite(PLBIV plb, INT iSelFromPt, BOOL fKeyBoard)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l03372">lboxctl2.c:3372</a></div></div>
<div class="ttc" id="aa01921_html_abae0c031d21e87807959f436a83ce8a4"><div class="ttname"><a href="a01921.html#abae0c031d21e87807959f436a83ce8a4">tagLBIV::fRedraw</a></div><div class="ttdeci">UINT fRedraw</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00893">usercli.h:893</a></div></div>
<div class="ttc" id="aa00053_html_aed83fabdb22766337e1e9ddf4c9db0f8"><div class="ttname"><a href="a00053.html#aed83fabdb22766337e1e9ddf4c9db0f8">xxxCBHideListBoxWindow</a></div><div class="ttdeci">BOOL xxxCBHideListBoxWindow(PCBOX pcbox, BOOL fNotifyParent, BOOL fSelEndOK)</div><div class="ttdef"><b>Definition:</b> <a href="a00053_source.html#l01497">combo.c:1497</a></div></div>
<div class="ttc" id="aa00182_html_aa5fe418a1364a3934d63936c502eee4e"><div class="ttname"><a href="a00182.html#aa5fe418a1364a3934d63936c502eee4e">SetSelected</a></div><div class="ttdeci">void SetSelected(PLBIV plb, INT iSel, BOOL fSelected, UINT wOpFlags)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00924">lboxctl2.c:924</a></div></div>
<div class="ttc" id="aa00935_html_a6f9d1e9b327899127c080496900d48d9"><div class="ttname"><a href="a00935.html#a6f9d1e9b327899127c080496900d48d9">SetRectEmpty</a></div><div class="ttdeci">BOOL APIENTRY SetRectEmpty(LPRECT prc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00414">rect.c:414</a></div></div>
<div class="ttc" id="aa01921_html_adf215a463519586b3a5202285100f6ab"><div class="ttname"><a href="a01921.html#adf215a463519586b3a5202285100f6ab">tagLBIV::iSelBase</a></div><div class="ttdeci">INT iSelBase</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00871">usercli.h:871</a></div></div>
<div class="ttc" id="aa00935_html_a31ccccdb469eefbb55d18b71a26af0da"><div class="ttname"><a href="a00935.html#a31ccccdb469eefbb55d18b71a26af0da">CopyRect</a></div><div class="ttdeci">BOOL APIENTRY CopyRect(LPRECT prcDst, CONST RECT *prcSrc)</div><div class="ttdef"><b>Definition:</b> <a href="a00935_source.html#l00391">rect.c:391</a></div></div>
<div class="ttc" id="aa03743_html_a6fff890dabd74b268fbcba3368ecc560"><div class="ttname"><a href="a03743.html#a6fff890dabd74b268fbcba3368ecc560">_GetDesktopWindow</a></div><div class="ttdeci">PWND _GetDesktopWindow(void)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00229">client/wow.c:229</a></div></div>
<div class="ttc" id="aa00182_html_ab75df6ab4e167809be4adcff1c4ca42e"><div class="ttname"><a href="a00182.html#ab75df6ab4e167809be4adcff1c4ca42e">xxxAlterHilite</a></div><div class="ttdeci">void xxxAlterHilite(PLBIV plb, INT i, INT j, BOOL fHilite, INT OpFlags, BOOL fSelStatus)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l03475">lboxctl2.c:3475</a></div></div>
<div class="ttc" id="aa02513_html_a6b46c66cae7ff432c25c07a67126b794"><div class="ttname"><a href="a02513.html#a6b46c66cae7ff432c25c07a67126b794">tagSERVERINFO::dtScroll</a></div><div class="ttdeci">UINT dtScroll</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00984">user.h:984</a></div></div>
<div class="ttc" id="aa00182_html_ae865bdbf8fc8b8c3982b92b6ecec38bd"><div class="ttname"><a href="a00182.html#ae865bdbf8fc8b8c3982b92b6ecec38bd">xxxNewITop</a></div><div class="ttdeci">void xxxNewITop(PLBIV plb, INT iTopNew)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01841">lboxctl2.c:1841</a></div></div>
<div class="ttc" id="aa00182_html_a83260e4fa4bbfc927ee1db63eb8cd2a1"><div class="ttname"><a href="a00182.html#a83260e4fa4bbfc927ee1db63eb8cd2a1">Compare</a></div><div class="ttdeci">INT Compare(LPCWSTR pwsz1, LPCWSTR pwsz2, DWORD dwLocaleId)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l02538">lboxctl2.c:2538</a></div></div>
<div class="ttc" id="aa02581_html_a17d59d04094aef8b577c0aa781cdf2c6"><div class="ttname"><a href="a02581.html#a17d59d04094aef8b577c0aa781cdf2c6">tagWND::rcClient</a></div><div class="ttdeci">RECT rcClient</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01399">user.h:1399</a></div></div>
<div class="ttc" id="aa00020_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<div class="ttc" id="aa01921_html_ab8ce3162badb545a4d4933d983a520e9"><div class="ttname"><a href="a01921.html#ab8ce3162badb545a4d4933d983a520e9">tagLBIV::fCaret</a></div><div class="ttdeci">UINT fCaret</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00904">usercli.h:904</a></div></div>
<div class="ttc" id="aa01921_html_a8abffa689a2601dffeb2ec73f0d35c8b"><div class="ttname"><a href="a01921.html#a8abffa689a2601dffeb2ec73f0d35c8b">tagLBIV::numberOfColumns</a></div><div class="ttdeci">INT numberOfColumns</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00888">usercli.h:888</a></div></div>
<div class="ttc" id="aa00182_html_acb5cc8fc5e692299c9c84fdea3a7a072"><div class="ttname"><a href="a00182.html#acb5cc8fc5e692299c9c84fdea3a7a072">xxxLBButtonUp</a></div><div class="ttdeci">void xxxLBButtonUp(PLBIV plb, UINT uFlags)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l01728">lboxctl2.c:1728</a></div></div>
<div class="ttc" id="aa00182_html_af3adc13bc6ed492221a4f1350363fb42"><div class="ttname"><a href="a00182.html#af3adc13bc6ed492221a4f1350363fb42">xxxLBDrawLBItem</a></div><div class="ttdeci">void xxxLBDrawLBItem(PLBIV plb, INT sItem, LPRECT lprect, BOOL fHilite, HBRUSH hbr)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00319">lboxctl2.c:319</a></div></div>
<div class="ttc" id="aa01921_html_a9172a7303e1d604e9057dd4908cc315e"><div class="ttname"><a href="a01921.html#a9172a7303e1d604e9057dd4908cc315e">tagLBIV::iTypeSearch</a></div><div class="ttdeci">int iTypeSearch</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00970">usercli.h:970</a></div></div>
<div class="ttc" id="aa03611_html_a02faeb6792094207ff4900c5b480dab2"><div class="ttname"><a href="a03611.html#a02faeb6792094207ff4900c5b480dab2">GetKeyState</a></div><div class="ttdeci">SHORT GetKeyState(int vKey)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l00589">client/ntstubs.c:589</a></div></div>
<div class="ttc" id="aa01889_html_a483879a0115f80176e3e2f16ed570039"><div class="ttname"><a href="a01889.html#a483879a0115f80176e3e2f16ed570039">tagCBox::CBoxStyle</a></div><div class="ttdeci">UINT CBoxStyle</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00464">usercli.h:464</a></div></div>
<div class="ttc" id="aa00182_html_af2965fa15cdad40e8176dfb625200256"><div class="ttname"><a href="a00182.html#af2965fa15cdad40e8176dfb625200256">LBTermDC</a></div><div class="ttdeci">void LBTermDC(PLBIV plb)</div><div class="ttdef"><b>Definition:</b> <a href="a00182_source.html#l00144">lboxctl2.c:144</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_caf01b281dbc7d7ffe410ecf117b6142.html">client</a></li><li class="navelem"><a class="el" href="a00182.html">lboxctl2.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
